Sha256: 25a159c93b8dda6fe67574d61e9f3590a45b1a49e2c7c554f194ed8e0a15068a

Contents?: true

Size: 706 Bytes

Versions: 19

Compression:

Stored size: 706 Bytes

Contents

require 'spec_helper'

describe Sisow do

  it "should set the configuration" do
    Sisow.configure do |c|
      c.merchant_id  = "789"
      c.merchant_key = "foobar"
      c.debug_mode   = false
      c.test_mode    = true
      c.shop_id      = "myshop"
    end

    Sisow.configuration.merchant_id.should == "789"
    Sisow.configuration.merchant_key.should == "foobar"
    Sisow.configuration.debug_mode.should == false
    Sisow.configuration.test_mode.should == true
    Sisow.configuration.shop_id.should == "myshop"
  end

  it "should verify the Sisow API is reachable" do
    VCR.use_cassette('ping') do
      Sisow::Ping.should_receive(:send)
      Sisow.service_reachable?
    end
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
sisow-2.1 spec/models/sisow_spec.rb
sisow-2.0 spec/models/sisow_spec.rb
sisow-1.7 spec/models/sisow_spec.rb
sisow-1.6 spec/models/sisow_spec.rb
sisow-1.5 spec/models/sisow_spec.rb
sisow-1.4 spec/models/sisow_spec.rb
sisow-1.3 spec/models/sisow_spec.rb
sisow-1.2 spec/models/sisow_spec.rb
sisow-1.1.1 spec/models/sisow_spec.rb
sisow-1.1.0 spec/models/sisow_spec.rb
sisow-1.0.1 spec/models/sisow_spec.rb
sisow-1.0.0 spec/models/sisow_spec.rb
sisow-0.9.9 spec/models/sisow_spec.rb
sisow-0.9.5 spec/models/sisow_spec.rb
sisow-0.9.4 spec/models/sisow_spec.rb
sisow-0.9.3 spec/models/sisow_spec.rb
sisow-0.9.2 spec/models/sisow_spec.rb
sisow-0.9.1 spec/models/sisow_spec.rb
sisow-0.9.0 spec/models/sisow_spec.rb