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

Version Path
fifthgear-0.0.7 spec/fifthgear/fifthgear_spec.rb
fifthgear-0.0.6 spec/fifthgear/fifthgear_spec.rb
fifthgear-0.0.5 spec/fifthgear/fifthgear_spec.rb
fifthgear-0.0.3 spec/fifthgear/fifthgear_spec.rb
fifthgear-0.0.2 spec/fifthgear/fifthgear_spec.rb