Sha256: 3a2e5411aebf77474b755932983e5ba561aff3bb92a7ae9e48ede0e70eea65fa
Contents?: true
Size: 634 Bytes
Versions: 6
Compression:
Stored size: 634 Bytes
Contents
require 'spec_helper' describe Apartment::Reloader do context "using postgresql schemas" do before do Apartment.configure do |config| config.excluded_models = ["Company"] config.use_schemas = true end Apartment::Database.reload!(config) Company.reset_table_name # ensure we're clean end subject{ Apartment::Reloader.new(double("Rack::Application", :call => nil)) } it "should initialize apartment when called" do Company.table_name.should_not include('public.') subject.call(double('env')) Company.table_name.should include('public.') end end end
Version data entries
6 entries across 6 versions & 1 rubygems