Sha256: 92f94d6683e735b1807702a65171abcec567e17da32b1d87b928c9bdf8c55828
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper") describe ActsAsArchive::Base do before(:all) do establish_test_db end describe 'acts_as_archive' do it "should add self.acts_as_archive? to the model" do Article.respond_to?(:acts_as_archive?).should == true end it "should add self.archive_indexes to the model" do Article.respond_to?(:archive_indexes).should == true Article.archive_indexes.should == [ 'id', ['subject_id','subject_type'], 'deleted_at' ] end it "should add Archive class to the model" do defined?(Article::Archive).should == "constant" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gravis-acts_as_archive-0.2.6 | spec/acts_as_archive/base_spec.rb |