Sha256: e1df53dab86a536e2e8d4e27b2b4d98d160293f8391f7d89a5825de8f3bca212
Contents?: true
Size: 877 Bytes
Versions: 5
Compression:
Stored size: 877 Bytes
Contents
require 'spec_helper' module Fifthgear describe "#configure" do before do Fifthgear.configure do |config| config.api_root = 'https://commerceservicestest.infifthgear.com/v2.0/CommerceServices.svc/Rest' config.username = 'mork' config.password = 'foobarf' config.content_type = 'text/json' config.company_id = 'CompanyID' end end end describe "#reset" do before do Fifthgear.configure do |config| config.api_root = 'https://commerceservicestest.infifthgear.com/v2.0/CommerceServices.svc/Rest' config.username = 'mork' config.password = 'foobarf' config.content_type = 'text/json' config.company_id = 'CompanyID' end end it "resets the configuration" do Fifthgear.reset config = Fifthgear.configuration expect(config.username).to be(nil) end end end
Version data entries
5 entries across 5 versions & 1 rubygems