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:
Javi Martín
2019-06-20 01:27:50 +02:00
parent 9182c833c0
commit da121ebc53
39 changed files with 0 additions and 215 deletions

View File

@@ -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