spec/mustang/v8/value_spec.rb in mustang-0.2.1 vs spec/mustang/v8/value_spec.rb in mustang-0.2.2
- old
+ new
@@ -167,11 +167,11 @@
end
end
describe "#to_boolean" do
it "return V8 boolean representation of value" do
- Mustang::V8::Object.new(:foo => 1).to_boolean.should be_true
- Mustang::V8::Integer.new(0).to_boolean.should be_false
+ Mustang::V8::Object.new(:foo => 1).to_boolean.should == true
+ Mustang::V8::Integer.new(0).to_boolean.should == false
end
end
describe "#===" do
it "returns true when compared objects are strictly the same" do