spec/rake/funnel/tasks/copy_spec.rb in rake-funnel-0.0.6.pre vs spec/rake/funnel/tasks/copy_spec.rb in rake-funnel-0.1.0.pre
- old
+ new
@@ -43,10 +43,10 @@
context 'failure' do
context 'target not defined' do
let(:target) { nil }
it 'should fail' do
- expect(lambda { Task[subject.name].invoke }).to raise_error(/Target not defined/)
+ expect { Task[subject.name].invoke }.to raise_error(/Target not defined/)
end
end
end
context 'success' do