Sha256: 960fd53adfb4d75a453bee303282557d4bc65ca177c4b57e209b0305d7913a33

Contents?: true

Size: 577 Bytes

Versions: 1

Compression:

Stored size: 577 Bytes

Contents

require 'acts_as_saveable'
require 'spec_helper'

describe ActsAsSaveable::Saver do

  it "should not be a saver" do
    expect(NotSaveable).not_to be_saveable
  end

  it "should be a saver" do
    expect(Saveable).to be_saveable
  end

  it_behaves_like "a saver_model" do
    # TODO Replace with factories
    let (:saver) { Saver.create(:name => 'i can saved!') }
    let (:saver2) { Saver.create(:name => 'a new person') }
    let (:saveable) { Saveable.create(:name => 'a saving model') }
    let (:saveable2) { Saveable.create(:name => 'a 2nd saving model') }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_saveable-0.10.1 spec/saver_spec.rb