Sha256: 592b0f8e3b63205af26d818c27f69df2f3c8746d4cd1dbb094713ba71217c9d2

Contents?: true

Size: 486 Bytes

Versions: 4

Compression:

Stored size: 486 Bytes

Contents

require File.expand_path( File.dirname(__FILE__) + '/spec_helper' )

shared_examples_for "Any transient that is single active" do
  it "should agree that the InstanceMethods module is included" do
    @klass.included_modules.include?( Transient::ActiveRecordExtensions::InstanceMethods ).should be_true
  end

  it "should agree that the SingleActive module is included" do
    @klass.included_modules.include?( Transient::ActiveRecordExtensions::SingleActive ).should be_true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
transient-1.1.0 spec/single_active_transient_shared_spec.rb
transient-1.0.2 spec/single_active_transient_shared_spec.rb
transient-1.0.1 spec/single_active_transient_shared_spec.rb
transient-1.0.0 spec/single_active_transient_shared_spec.rb