Remove redundant spec line, test that sells is not changed

This commit is contained in:
Rohan Mitchell
2015-04-17 15:42:42 +10:00
parent 0d9ba4257d
commit 0d4dbd23fd

View File

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