Sha256: 09d7599bcefad723114af0977fcc2f62de7264b6d83b5bb858093a33bb8cfa40
Contents?: true
Size: 635 Bytes
Versions: 13
Compression:
Stored size: 635 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', 'deleted_at' ] end it "should add Archive class to the model" do defined?(Article::Archive).should == "constant" end end end
Version data entries
13 entries across 13 versions & 4 rubygems