require 'spec_helper' describe Datatrans::Config do describe "Instance Methods" do before do @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) end end describe "xml_transaction" do it "builds a new xml transaction object" do @datatrans.xml_transaction({}).class.should eq(Datatrans::XML::Transaction) end end end end