Sha256: 1a6b00571f07708885f3d8585a67530ba5fd975fe29e89414393c617429e8b00

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

require "helper"

describe "Alexa::Config" do
  before do
    Alexa.config.access_key_id = nil
    Alexa.config.secret_access_key = nil
  end

  it "should raise argumment error if access key id is not present" do
    assert_raises ArgumentError do
      Alexa::UrlInfo.new(
        :secret_access_key => "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDF",
        :host => "some.host"
      )
    end
  end

  it "should raise argumment error if secret access key is not present" do
    assert_raises ArgumentError do
      Alexa::UrlInfo.new(
        :access_key_id => "12345678901234567890",
        :host => "some.host"
      )
    end
  end

  it "should raise argumment error if host is not present" do
    assert_raises ArgumentError do
      Alexa::UrlInfo.new(
        :access_key_id => "12345678901234567890",
        :secret_access_key => "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDF"
      )
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alexa-0.2.2 test/config_test.rb
alexa-0.2.1 test/config_test.rb