diff --git a/test/functional/application_controller_test.rb b/test/functional/application_controller_test.rb index 6f98324..76df1bb 100644 --- a/test/functional/application_controller_test.rb +++ b/test/functional/application_controller_test.rb @@ -485,7 +485,9 @@ class ApplicationControllerTest < ActionController::TestCase Noosfero::MultiTenancy.expects(:on?).returns(true) Noosfero::MultiTenancy.expects(:mapping).returns({ 'schema1.com' => 'schema1' }).at_least_once exception = assert_raise(ActiveRecord::StatementInvalid) { get :index } - assert_match /SET search_path TO schema1/, exception.message + + # we have switched to a new database schema, and whatever table we need don't exist in it + assert_match /PG::UndefinedTable/, exception.message end should 'not change postgresql schema if multitenancy is off' do -- libgit2 0.21.2