diff --git a/spec/services/toggle_flag_spec.rb b/spec/services/toggle_flag_spec.rb index 4f1ad543872..1cd0f1924d8 100644 --- a/spec/services/toggle_flag_spec.rb +++ b/spec/services/toggle_flag_spec.rb @@ -14,7 +14,7 @@ RSpec.describe(ToggleFlag) do context "when user is allowed to perform the action" do fab!(:current_user) { Fabricate(:admin) } - after { flag.update!(enabled: true) } + after { flag.reload.update!(enabled: true) } it "sets the service result as successful" do expect(result).to be_a_success