1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

Disable failing Decoratable#== spec on Mongoid 3.0

This commit is contained in:
Andrew Haines 2013-03-03 12:06:38 +00:00
parent e3131da6cc
commit 9873c33585

View file

@ -11,6 +11,8 @@ shared_examples_for "a decoratable model" do
describe "#==" do
it "is true for other instances' decorators" do
pending "Mongoid < 3.1 overrides `#==`" if defined?(Mongoid) && Mongoid::VERSION.to_f < 3.1 && described_class < Mongoid::Document
described_class.create
one = described_class.first
other = described_class.first