Sha256: 469dae4f64d8cb6e9eb9af5497c26309e63425d876a9ffa52c5b720d39c0e311
Contents?: true
Size: 662 Bytes
Versions: 4
Compression:
Stored size: 662 Bytes
Contents
require "spec_helper" describe "Base" do before do @post1 = Post.insert({:author => "Chuck Norris"}) @post2 = Post.find(:author => "Chuck Norris").first end describe "<=>" do it "return Integer -1, 0, 1" do (@post1 <=> @post2).should == 0 end end describe "==" do it "return True if the ids are equal, false if not" do @post1.should == @post2 end end describe "===" do it "return True if the classes are equal, false if not" do @post1.should === @post2 end end describe "eql?" do it "return True if equal, false if not" do @post1.eql?(@post2).should == true end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mini_mongo-0.1.0 | spec/base_spec.rb |
mini_mongo-0.0.4 | spec/base_spec.rb |
mini_mongo-0.0.3 | spec/base_spec.rb |
mini_mongo-0.0.2 | spec/base_spec.rb |