Sha256: 8fe3b763834a833c55434589f0a907ac434d296ea3b8eb5157f32455772529bf
Contents?: true
Size: 429 Bytes
Versions: 5
Compression:
Stored size: 429 Bytes
Contents
require 'spec_helper' describe Object do context "bullet_ar_key" do it "should return class and id composition" do post = Post.first expect(post.bullet_ar_key).to eq("Post:#{post.id}") end if mongoid? it "should return class with namesapce and id composition" do post = Mongoid::Post.first expect(post.bullet_ar_key).to eq("Mongoid::Post:#{post.id}") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems