Sha256: 788c712c9efbfec5bfadf8e77743755554ceaec99115458a9394ba83778673b5
Contents?: true
Size: 666 Bytes
Versions: 6
Compression:
Stored size: 666 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
6 entries across 6 versions & 2 rubygems