mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-18 04:39:14 +00:00
Remove redundant spec line, test that sells is not changed
This commit is contained in:
@@ -272,7 +272,7 @@ module Admin
|
||||
|
||||
context "setting 'sells' to 'own'" do
|
||||
before do
|
||||
enterprise.sells = 'own'
|
||||
enterprise.sells = 'none'
|
||||
enterprise.save!
|
||||
end
|
||||
|
||||
@@ -284,8 +284,7 @@ module Admin
|
||||
expect(response).to redirect_to spree.admin_path
|
||||
trial_expiry = Date.today.strftime("%Y-%m-%d")
|
||||
expect(flash[:error]).to eq "Sorry, but you've already had a trial. Expired on: #{trial_expiry}"
|
||||
expect(enterprise.reload.sells).to eq 'own'
|
||||
expect(enterprise.reload.shop_trial_start_date).to eq (Date.today - 30.days).to_time
|
||||
expect(enterprise.reload.sells).to eq 'none'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user