Sha256: 26eb3cd4175875fde6c3f231df5a2c2b6246eaa83a8eab5aafdd36dd80c7a405
Contents?: true
Size: 649 Bytes
Versions: 3
Compression:
Stored size: 649 Bytes
Contents
Message = Carrier::Message Chain = Carrier::Chain describe Carrier::Message do context "Scopes" do let(:user) do singleton(:user) end specify { Message.count.should == 0 Chain.count.should == 0 Message.for_or_by(user).size.should == 0 create(:message, :sender_user => user) Message.for(user).size.should == 0 Message.by(user).size.should == 1 Message.for_or_by(user).size.should == 1 create(:second_message) Message.for(user).size.should == 1 Message.by(user).size.should == 1 Message.for_or_by(user).size.should == 2 } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
carrier-0.1.5 | spec/carrier/app/models/message_scopes_spec.rb |
carrier-0.1.4 | spec/carrier/app/models/message_scopes_spec.rb |
carrier-0.1.3 | spec/carrier/app/models/message_scopes_spec.rb |