spec/dummy/spec/models/post_spec.rb in draper-1.0.0 vs spec/dummy/spec/models/post_spec.rb in draper-1.1.0

- old
+ new

@@ -1,14 +1,14 @@ require 'spec_helper' describe Post do describe "#==" do - before { Post.create } - subject { Post.first } - it "is true for other instances' decorators" do + Post.create + one = Post.first other = Post.first - subject.should_not be other - (subject == other.decorate).should be_true + + expect(one).not_to be other + expect(one == other.decorate).to be_true end end end