mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Updating spec with $ (not £) for automated testing
This commit is contained in:
@@ -20,12 +20,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 + 5.0% OF SALES, CAPPED AT £20 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 + 5.0% OF SALES, CAPPED AT $20 PER MONTH, PLUS GST" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 + 5.0% OF SALES PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 + 5.0% OF SALES PER MONTH, PLUS GST" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -34,12 +34,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 PER MONTH, PLUS GST" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 PER MONTH, PLUS GST" }
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -52,7 +52,7 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "5.0% OF SALES, CAPPED AT £20 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "5.0% OF SALES, CAPPED AT $20 PER MONTH, PLUS GST" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
@@ -77,7 +77,7 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
end
|
||||
end
|
||||
|
||||
context "when minimum billable turnover is £100" do
|
||||
context "when minimum billable turnover is $100" do
|
||||
before { Spree::Config.set(:minimum_billable_turnover, 100) }
|
||||
|
||||
context "when a fixed cost is included" do
|
||||
@@ -88,12 +88,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS £100, CAPPED AT £20 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS $100, CAPPED AT $20 PER MONTH, PLUS GST" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS £100 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS $100 PER MONTH, PLUS GST" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -102,12 +102,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 PER MONTH, PLUS GST" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 PER MONTH, PLUS GST" }
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -120,12 +120,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "5.0% OF SALES ONCE TURNOVER EXCEEDS £100, CAPPED AT £20 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "5.0% OF SALES ONCE TURNOVER EXCEEDS $100, CAPPED AT $20 PER MONTH, PLUS GST" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "5.0% OF SALES ONCE TURNOVER EXCEEDS £100 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "5.0% OF SALES ONCE TURNOVER EXCEEDS $100 PER MONTH, PLUS GST" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -160,12 +160,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 + 5.0% OF SALES, CAPPED AT £20 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 + 5.0% OF SALES, CAPPED AT $20 PER MONTH" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 + 5.0% OF SALES PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 + 5.0% OF SALES PER MONTH" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -174,12 +174,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 PER MONTH" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 PER MONTH" }
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -192,7 +192,7 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "5.0% OF SALES, CAPPED AT £20 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "5.0% OF SALES, CAPPED AT $20 PER MONTH" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
@@ -217,7 +217,7 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
end
|
||||
end
|
||||
|
||||
context "when minimum billable turnover is £100" do
|
||||
context "when minimum billable turnover is $100" do
|
||||
before { Spree::Config.set(:minimum_billable_turnover, 100) }
|
||||
|
||||
context "when a fixed cost is included" do
|
||||
@@ -228,12 +228,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS £100, CAPPED AT £20 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS $100, CAPPED AT $20 PER MONTH" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS £100 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS $100 PER MONTH" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -242,12 +242,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 PER MONTH" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "£10 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "$10 PER MONTH" }
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -260,12 +260,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "5.0% OF SALES ONCE TURNOVER EXCEEDS £100, CAPPED AT £20 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "5.0% OF SALES ONCE TURNOVER EXCEEDS $100, CAPPED AT $20 PER MONTH" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "5.0% OF SALES ONCE TURNOVER EXCEEDS £100 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "5.0% OF SALES ONCE TURNOVER EXCEEDS $100 PER MONTH" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -304,12 +304,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 + 5.0% OF SALES, CAPPED AT £20 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 + 5.0% OF SALES, CAPPED AT $20 PER MONTH, PLUS GST" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 + 5.0% OF SALES PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 + 5.0% OF SALES PER MONTH, PLUS GST" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -318,12 +318,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 PER MONTH, PLUS GST" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 PER MONTH, PLUS GST" }
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -336,7 +336,7 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN 5.0% OF SALES, CAPPED AT £20 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN 5.0% OF SALES, CAPPED AT $20 PER MONTH, PLUS GST" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
@@ -361,7 +361,7 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
end
|
||||
end
|
||||
|
||||
context "when minimum billable turnover is £100" do
|
||||
context "when minimum billable turnover is $100" do
|
||||
before { Spree::Config.set(:minimum_billable_turnover, 100) }
|
||||
|
||||
context "when a fixed cost is included" do
|
||||
@@ -372,12 +372,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS £100, CAPPED AT £20 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS $100, CAPPED AT $20 PER MONTH, PLUS GST" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS £100 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS $100 PER MONTH, PLUS GST" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -386,12 +386,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 PER MONTH, PLUS GST" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 PER MONTH, PLUS GST" }
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -404,12 +404,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN 5.0% OF SALES ONCE TURNOVER EXCEEDS £100, CAPPED AT £20 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN 5.0% OF SALES ONCE TURNOVER EXCEEDS $100, CAPPED AT $20 PER MONTH, PLUS GST" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN 5.0% OF SALES ONCE TURNOVER EXCEEDS £100 PER MONTH, PLUS GST" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN 5.0% OF SALES ONCE TURNOVER EXCEEDS $100 PER MONTH, PLUS GST" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -444,12 +444,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 + 5.0% OF SALES, CAPPED AT £20 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 + 5.0% OF SALES, CAPPED AT $20 PER MONTH" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 + 5.0% OF SALES PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 + 5.0% OF SALES PER MONTH" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -458,12 +458,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 PER MONTH" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 PER MONTH" }
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -476,7 +476,7 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN 5.0% OF SALES, CAPPED AT £20 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN 5.0% OF SALES, CAPPED AT $20 PER MONTH" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
@@ -501,7 +501,7 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
end
|
||||
end
|
||||
|
||||
context "when minimum billable turnover is £100" do
|
||||
context "when minimum billable turnover is $100" do
|
||||
before { Spree::Config.set(:minimum_billable_turnover, 100) }
|
||||
|
||||
context "when a fixed cost is included" do
|
||||
@@ -512,12 +512,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS £100, CAPPED AT £20 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS $100, CAPPED AT $20 PER MONTH" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS £100 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 + 5.0% OF SALES ONCE TURNOVER EXCEEDS $100 PER MONTH" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -526,12 +526,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 PER MONTH" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN £10 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN $10 PER MONTH" }
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -544,12 +544,12 @@ describe Admin::BusinessModelConfigurationHelper do
|
||||
|
||||
context "when the bill is capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 20) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN 5.0% OF SALES ONCE TURNOVER EXCEEDS £100, CAPPED AT £20 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN 5.0% OF SALES ONCE TURNOVER EXCEEDS $100, CAPPED AT $20 PER MONTH" }
|
||||
end
|
||||
|
||||
context "when the bill is not capped" do
|
||||
before { Spree::Config.set(:account_invoices_monthly_cap, 0) }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN 5.0% OF SALES ONCE TURNOVER EXCEEDS £100 PER MONTH" }
|
||||
it { expect(helper.monthly_bill_description).to eq "FREE TRIAL THEN 5.0% OF SALES ONCE TURNOVER EXCEEDS $100 PER MONTH" }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user