spec/unit/contextual_validators/execution_spec.rb in dm-validations-1.0.0.rc2 vs spec/unit/contextual_validators/execution_spec.rb in dm-validations-1.0.0.rc3
- old
+ new
@@ -17,32 +17,32 @@
describe "when target satisfies all validators" do
before do
@target = DataMapper::Validations::Fixtures::PieceOfSoftware.new(:name => 'gcc', :operating_system => "Mac OS X")
- @validator_one.call(@target).should be_true
- @validator_two.call(@target).should be_true
+ @validator_one.call(@target).should be(true)
+ @validator_two.call(@target).should be(true)
@result = @model.execute(:default, @target)
end
it "returns true" do
- @result.should be_true
+ @result.should be(true)
end
end
describe "when target does not satisfy all validators" do
before do
@target = DataMapper::Validations::Fixtures::PieceOfSoftware.new(:name => 'Skitch', :operating_system => "Haiku")
- @validator_one.call(@target).should be_true
- @validator_two.call(@target).should be_false
+ @validator_one.call(@target).should be(true)
+ @validator_two.call(@target).should be(false)
@result = @model.execute(:default, @target)
end
it "returns true" do
- @result.should be_false
+ @result.should be(false)
end
end
end
end