Sha256: 064d5b0efa8bee103acc4b62447b91e6eaa6498016387464044b57952a131894
Contents?: true
Size: 640 Bytes
Versions: 9
Compression:
Stored size: 640 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::Tenant.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 expect(Company.table_name).not_to include('public.') subject.call(double('env')) expect(Company.table_name).to include('public.') end end end
Version data entries
9 entries across 9 versions & 2 rubygems