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:
@@ -8,10 +8,6 @@ shared_examples "map validations" do
|
||||
Setting["feature.map"] = true
|
||||
end
|
||||
|
||||
after do
|
||||
Setting["feature.map"] = nil
|
||||
end
|
||||
|
||||
it "is valid with a map location" do
|
||||
mappable.map_location = build(:map_location)
|
||||
mappable.skip_map = nil
|
||||
|
||||
Reference in New Issue
Block a user