Remove redundant setting resets in after blocks
Settings are stored in the database, and so any changes to the settings done during the tests are automatically rolled back between one test and the next one. There were also a few places where we weren't using an `after` block but changing the setting at the end of the test.
This commit is contained in:
@@ -12,10 +12,6 @@ shared_examples "remotely_translatable" do |factory_name, path_name, path_argume
|
||||
Setting["feature.remote_translations"] = true
|
||||
end
|
||||
|
||||
after do
|
||||
Setting["feature.remote_translations"] = false
|
||||
end
|
||||
|
||||
context "Button to request remote translation" do
|
||||
|
||||
scenario "should not be present when current locale translation exists", :js do
|
||||
|
||||
Reference in New Issue
Block a user