Sha256: 7703a9a86fd9cabd04e338a545b38e853d2394a295fd6dabdb3de7a845d8dd69
Contents?: true
Size: 468 Bytes
Versions: 1
Compression:
Stored size: 468 Bytes
Contents
require 'spec_helper' describe Likeable::MongoidAdapter do let(:klass) { Class.new } before do Likeable.adapter = Likeable::MongoidAdapter end after do default_adapter! end it "finds one by passing the id to find" do klass.should_receive(:find).with(42) Likeable.find_one(klass, 42) end it "finds many by passing the ids array find" do klass.should_receive(:find).with([1, 42]) Likeable.find_many(klass, [1, 42]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
likeable-0.1.2 | spec/likeable/adapters/mongoid_adapter_spec.rb |