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