Sha256: a1548ee47e2feee239e1b2cf2b7bfd5b300694aedeaf81b5a610e43f69db1782

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

require 'spec_helper'

describe ElabsMatchers::Matchers::Rspec::Orm do
  describe "#persist" do
    let(:post) { ElabsMatchers::Orm::Post.create(:title => "New") }

    it "returns true if the value is the supplied" do
      post.should persist(:title, "Updated")
    end

    it "returns false if the value isn't the supplied" do
      post.stub(:title).and_return("New")
      post.should_not persist(:title, "Updated")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
elabs_matchers-0.0.2 spec/elabs_matchers/matchers/rspec/orm_spec.rb
elabs_matchers-0.0.1 spec/elabs_matchers/matchers/rspec/orm_spec.rb