Sha256: 8384f0b01155c0ac0d0f7d332d7b38022008081874071ad0975a0797b6b82bfe
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 Bytes
Contents
require 'acts_as_saveable' require 'spec_helper' describe ActsAsSaveable::Saveable do it "should not be saveable" do expect(NotSaveable).not_to be_saveable end it "should be saveable" do expect(Saveable).to be_saveable end it_behaves_like "a saveable_model" do # TODO Replace with factories let (:saver) { Saver.create(:name =>'i can saved!') } let (:saver2) { Saver.create(:name => 'a new person') } let (:saver3) { Saver.create(:name => 'another person') } let (:saveable) { Saveable.create(:name =>'a saving model') } let (:saveable_cache) { SaveableCache.create(:name => 'saving model with cache') } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_saveable-0.10.1 | spec/saveable_spec.rb |