diff --git a/spec/controllers/topic_controller_spec.rb b/spec/controllers/topic_controller_spec.rb index 6be013eb884..37e5c9cb308 100644 --- a/spec/controllers/topic_controller_spec.rb +++ b/spec/controllers/topic_controller_spec.rb @@ -33,7 +33,7 @@ describe TopicsController do get :show, params: { id: 666 } expect(controller.theme_key).to eq(theme.key) - theme.update_columns(user_selectable: false) + theme.update_attribute(:user_selectable, false) get :show, params: { id: 666 } expect(controller.theme_key).not_to eq(theme.key)