require 'spec_helper'

describe Post do
  describe "#==" do
    before { Post.create }
    subject { Post.first }

    it "is true for other instances' decorators" do
      pending if Rails.version.start_with?("3.0")
      other = Post.first
      subject.should_not be other
      (subject == other.decorate).should be_true
    end
  end
end

require 'spec_helper'

describe Post do
  describe "#==" do
    before { Post.create }
    subject { Post.first }

    it "is true for other instances' decorators" do
      other = Post.first
      subject.should_not be other
      (subject == other.decorate).should be_true
    end
  end
end

Remove pending spec on Rails 3.0
Remove pending spec on Rails 3.0
