Skip to content

Commit 4f143ad

Browse files
committed
Remove duplicate test
1 parent b60c99e commit 4f143ad

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

admin/spec/features/properties_spec.rb

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -50,35 +50,6 @@
5050
end
5151
end
5252

53-
context "editing an existing property" do
54-
let!(:property) { create(:property, name: "Color", presentation: "Cool Color") }
55-
56-
it "updates the property" do
57-
visit "/admin/properties"
58-
click_on "Color"
59-
60-
fill_in "Name", with: "Size"
61-
fill_in "Presentation", with: "Cool Size"
62-
click_on "Update Property"
63-
64-
expect(page).to have_content("Property was successfully updated.")
65-
expect(page).to have_content("Size")
66-
expect(page).to have_content("Cool Size")
67-
expect(Spree::Property.count).to eq(1)
68-
end
69-
70-
it "shows validation errors" do
71-
visit "/admin/properties"
72-
click_on "Color"
73-
74-
fill_in "Name", with: ""
75-
click_on "Update Property"
76-
77-
expect(page).to have_content("can't be blank")
78-
expect(Spree::Property.count).to eq(1)
79-
end
80-
end
81-
8253
context "editing an existing property" do
8354
let!(:property) { create(:property, name: "Color", presentation: "Cool Color") }
8455

0 commit comments

Comments
 (0)