mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Adding some spec tweaks
This commit is contained in:
@@ -162,7 +162,6 @@ feature "As a consumer I want to check out my cart", js: true do
|
||||
it "re-renders with errors when we submit the incomplete form" do
|
||||
click_button "Purchase"
|
||||
current_path.should == "/shop/checkout"
|
||||
save_and_open_page
|
||||
page.should have_content "can't be blank"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -29,6 +29,12 @@ describe Spree::Address do
|
||||
end
|
||||
end
|
||||
|
||||
describe "setters" do
|
||||
it "lets us set a country" do
|
||||
expect { Spree::Address.new.country = "A country" }.to raise_error ActiveRecord::AssociationTypeMismatch
|
||||
end
|
||||
end
|
||||
|
||||
describe "notifying bugsnag when saved with missing data" do
|
||||
it "notifies on create" do
|
||||
Bugsnag.should_receive(:notify)
|
||||
|
||||
Reference in New Issue
Block a user