Sha256: 3f99e55124754e51625accc46c3285b3c51c7f0fa15b6467bc7028c6c684a2b6

Contents?: true

Size: 401 Bytes

Versions: 20

Compression:

Stored size: 401 Bytes

Contents

require 'spec_helper'

describe Storey, "dealing with excluded_models" do
  before do
    Storey.excluded_models = %w(Company)
  end

  it "should always reference these models in the public schema" do
    Storey.create("foo") { Company.create :name => "company_1" }
    Company.create :name => "company_2"

    Company.count.should == 2
    Storey.switch("foo") {Company.count.should == 2}
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
storey-2.0.2 spec/storey/excluded_models_spec.rb
storey-2.0.1 spec/storey/excluded_models_spec.rb
storey-2.0.0 spec/storey/excluded_models_spec.rb
storey-1.0.0 spec/storey/excluded_models_spec.rb
storey-0.6.0 spec/storey/excluded_models_spec.rb
storey-0.5.2 spec/storey/excluded_models_spec.rb
storey-0.5.1 spec/storey/excluded_models_spec.rb
storey-0.5.0 spec/storey/excluded_models_spec.rb
storey-0.4.2 spec/storey/excluded_models_spec.rb
storey-0.4.1 spec/storey/excluded_models_spec.rb
storey-0.4.0 spec/storey/excluded_models_spec.rb
storey-0.3.6 spec/storey/excluded_models_spec.rb
storey-0.3.5 spec/storey/excluded_models_spec.rb
storey-0.3.4 spec/storey/excluded_models_spec.rb
storey-0.3.3 spec/storey/excluded_models_spec.rb
storey-0.3.1 spec/storey/excluded_models_spec.rb
storey-0.3.0 spec/storey/excluded_models_spec.rb
storey-0.2.0 spec/storey/excluded_models_spec.rb
storey-0.1.0 spec/storey/excluded_models_spec.rb
storey-0.0.1 spec/storey/excluded_models_spec.rb