Sha256: 2feaec4ed1bb0a07912093197f3121ae65cbec8236cb21e8756bc76c5367c0fb

Contents?: true

Size: 980 Bytes

Versions: 19

Compression:

Stored size: 980 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "AmazonSellerCentral" do
  before :each do
    @email = Faker::Internet.email
    @password = Faker::Lorem.words
  end

  it "allows configuration" do
    AmazonSellerCentral.configure do |config|
      config.login_email @email
      config.login_password @password
    end

    AmazonSellerCentral.configuration.login_email.should == @email
    AmazonSellerCentral.configuration.login_password.should == @password
  end

  it "allows configuration in another format" do
    AmazonSellerCentral.configure do |config|
      config.login_email = @email
      config.login_password = @password
    end

    AmazonSellerCentral.configuration.login_email.should == @email
    AmazonSellerCentral.configuration.login_password.should == @password
  end

  it "allows access to a mechanizer" do
    mech = AmazonSellerCentral.mechanizer
    mech.should be_instance_of(AmazonSellerCentral::Mechanizer)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
amazon_seller_central-0.3.2 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.3.1 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.3.0 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.16 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.15 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.14 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.13 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.12 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.11 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.10 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.9 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.8 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.7 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.6 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.5 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.4 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.3 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.2 spec/amazon_seller_central_spec.rb
amazon_seller_central-0.2.1 spec/amazon_seller_central_spec.rb