Sha256: 104f46e4e5c56f304f27a2178c507682d86fad8970be3ca08daa6a79f9c228fe

Contents?: true

Size: 748 Bytes

Versions: 3

Compression:

Stored size: 748 Bytes

Contents

require "spec_helper"

describe SauceWhisk::Account do
  describe "#new" do
    it "sets any options passed in as a hash" do
      options = {
          :access_key => 12345,
          :minutes => 23,
          :id => "someone"
      }

      test_account = SauceWhisk::Account.new options
      test_account.access_key.should eq 12345
      test_account.minutes.should eq 23
      test_account.username.should eq "someone"
    end

    it "sets concurrency figures" do
      concurrencies = {
          :mac_concurrency => 23,
          :total_concurrency => 100
      }

      test_account = SauceWhisk::Account.new concurrencies
      test_account.mac_concurrency.should eq 23
      test_account.total_concurrency.should eq 100
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sauce_whisk-0.0.9 spec/lib/sauce_whisk/account_spec.rb
sauce_whisk-0.0.8 spec/lib/sauce_whisk/account_spec.rb
sauce_whisk-0.0.7 spec/lib/sauce_whisk/account_spec.rb