Remove skip map checkbox

This commit is contained in:
Melvin Lammerts
2020-04-12 21:35:28 +00:00
committed by taitus
parent 414eba83ec
commit c34aa54122
20 changed files with 5 additions and 101 deletions

View File

@@ -8,13 +8,11 @@ shared_examples "map validations" do
it "is valid with a map location" do
mappable.map_location = build(:map_location)
mappable.skip_map = nil
expect(mappable).to be_valid
end
it "is valid accepting that the mappable has no map" do
mappable.skip_map = "1"
it "is valid without a location" do
mappable.map_location = nil
expect(mappable).to be_valid
@@ -24,23 +22,9 @@ shared_examples "map validations" do
Setting["feature.map"] = nil
mappable.map_location = nil
mappable.skip_map = nil
expect(mappable).to be_valid
end
it "is not valid without a map location" do
mappable.map_location = nil
mappable.skip_map = nil
expect(mappable).not_to be_valid
end
it "is not valid without accepting that the mappable has no map" do
mappable.skip_map = nil
expect(mappable).not_to be_valid
end
end
describe "cache" do