spec/rake/funnel/support/mapper_spec.rb in rake-funnel-0.18.0 vs spec/rake/funnel/support/mapper_spec.rb in rake-funnel-0.19.0
- old
+ new
@@ -7,12 +7,12 @@
array: [1, 2, nil],
hash: { one: 1, two: 2, unset: nil },
enum_hash: [{ one: 1 }, { two: 2 }, { unset: nil }]
}
- _ = subject.map(args)
- expect(_).not_to be_empty
+ result = subject.map(args)
+ expect(result).not_to be_empty
skip('for manual testing only')
end
end
@@ -50,10 +50,11 @@
end
end
context 'nil mapper' do
it 'should fail' do
- expect { described_class.new(nil) }.to raise_error(/You cannot use the 'nil' mapper style. Available mappers are:/)
+ expect { described_class.new(nil) }.to \
+ raise_error(/You cannot use the 'nil' mapper style. Available mappers are:/)
end
end
context 'custom mapper' do
it 'should take custom mapper instance' do