Admin can set enterprises to charge or not charge sales tax

This commit is contained in:
Rohan Mitchell
2015-04-08 10:40:38 +10:00
parent 08fef890ec
commit 9bbc151cae
6 changed files with 26 additions and 2 deletions

View File

@@ -218,6 +218,7 @@ feature %q{
click_link "Business Details"
fill_in 'enterprise_abn', :with => '09812309823'
fill_in 'enterprise_acn', :with => ''
choose 'Yes' # enterprise_charges_sales_tax
click_link "Address"
fill_in 'enterprise_address_attributes_address1', :with => '35 Ballantyne St'
@@ -237,6 +238,9 @@ feature %q{
@enterprise.reload
expect(@enterprise.owner).to eq user
click_link "Business Details"
page.should have_checked_field "enterprise_charges_sales_tax_true"
click_link "Payment Methods"
page.should have_checked_field "enterprise_payment_method_ids_#{payment_method.id}"