spec/scide_spec.rb in scide-0.0.9 vs spec/scide_spec.rb in scide-0.0.10
- old
+ new
@@ -29,10 +29,10 @@
lambda{ Scide.fail nil, 'fubar' }.should raise_error(Scide::Error)
end
it "should raise an error with the correct condition" do
Scide.exit_on_fail = false
- Scide::EXIT.each_pair do |condition|
+ Scide::EXIT.each_pair do |condition,code|
lambda{ Scide.fail condition, 'fubar' }.should raise_error(Scide::Error){ |err| err.condition.should == condition }
end
end
end