spec/unit/elevators/domain_spec.rb in apartment-0.24.3 vs spec/unit/elevators/domain_spec.rb in apartment-0.25.0
- old
+ new
@@ -22,10 +22,10 @@
end
end
describe "#call" do
it "switches to the proper tenant" do
- Apartment::Database.should_receive(:switch).with('example')
+ Apartment::Tenant.should_receive(:switch).with('example')
elevator.call('HTTP_HOST' => 'www.example.com')
end
end
end