From 1e18f773f57b2d70eaf05ada746c11a0a6337df9 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 6 Mar 2015 11:15:07 +1100 Subject: [PATCH] Switch context -> describe, clarify test grammar --- spec/models/spree/adjustment_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/models/spree/adjustment_spec.rb b/spec/models/spree/adjustment_spec.rb index 289b70ccab..0922597c2a 100644 --- a/spec/models/spree/adjustment_spec.rb +++ b/spec/models/spree/adjustment_spec.rb @@ -36,7 +36,7 @@ module Spree adjustment.amount.should == 50 end - context "when tax on shipping is disabled" do + describe "when tax on shipping is disabled" do it "records 0% tax on shipment adjustments" do Config.shipment_inc_vat = false Config.shipping_tax_rate = 0 @@ -54,7 +54,7 @@ module Spree end end - context "when tax on shipping is enabled" do + describe "when tax on shipping is enabled" do before do Config.shipment_inc_vat = true Config.shipping_tax_rate = 0.25 @@ -107,7 +107,7 @@ module Spree adjustment.included_tax.should == 4.55 end - context "when the tax rate does not include the tax in the price" do + describe "when the tax rate does not include the tax in the price" do before do tax_rate.update_attribute :included_in_price, false order.update_distribution_charge! @@ -118,7 +118,7 @@ module Spree end end - context "when enterprise fees have no tax" do + describe "when enterprise fees have no tax" do before do enterprise_fee.tax_category = tax_category_untaxed enterprise_fee.save!