spec/config_spec.rb in datatrans-3.0.2 vs spec/config_spec.rb in datatrans-4.0.0
- old
+ new
@@ -6,16 +6,16 @@
@datatrans = Datatrans::Config.new(:merchant_id => "xxx")
end
describe "web_transaction" do
it "builds a new web transaction object" do
- @datatrans.web_transaction({}).class.should eq(Datatrans::Web::Transaction)
+ expect(@datatrans.web_transaction({}).class).to eq(Datatrans::Web::Transaction)
end
end
describe "xml_transaction" do
it "builds a new xml transaction object" do
- @datatrans.xml_transaction({}).class.should eq(Datatrans::XML::Transaction)
+ expect(@datatrans.xml_transaction({}).class).to eq(Datatrans::XML::Transaction)
end
end
end
end