spec/rake/funnel/tasks/paket_spec.rb in rake-funnel-0.0.6.pre vs spec/rake/funnel/tasks/paket_spec.rb in rake-funnel-0.1.0.pre
- old
+ new
@@ -152,11 +152,11 @@
before {
allow(subject).to receive(:sh).with(subject.paket, anything).and_raise
}
it 'should fail' do
- expect(lambda { Task[subject.name].invoke }).to raise_error
+ expect { Task[subject.name].invoke }.to raise_error
end
end
end
context 'paket.exe does not exist' do
@@ -172,10 +172,10 @@
expect(subject).not_to have_received(:sh).with(subject.paket, subject.paket_args)
end
it 'should fail' do
- expect(lambda { Task[subject.name].invoke }).to raise_error
+ expect { Task[subject.name].invoke }.to raise_error
end
end
end
end
end