mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Fix specs
This commit is contained in:
parent
9290713ad0
commit
9d2d4ff6c1
2 changed files with 1 additions and 6 deletions
|
@ -7,7 +7,7 @@ describe Hamlit::Engine do
|
|||
{ buffer: buffer, generator: Temple::Generators::ArrayBuffer }
|
||||
end
|
||||
|
||||
it 'allows generator valid options' do
|
||||
it 'accepts generator valid options' do
|
||||
expect(subject.call('')).to eq(
|
||||
"#{buffer} = []; ; #{buffer} = #{buffer}.join",
|
||||
)
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
describe Hamlit::ScriptCompiler do
|
||||
describe '#call' do
|
||||
def assert_compile(before, after)
|
||||
result = described_class.new.call(before)
|
||||
expect(result).to eq(after)
|
||||
end
|
||||
|
||||
it 'does not alter single-line script' do
|
||||
assert_compile(
|
||||
[:multi,
|
||||
|
|
Loading…
Add table
Reference in a new issue