Sha256: 2d5ec8af0bd7f82d55455698b27b1d9718fae5f44c0b3249fe1d10535965f24b

Contents?: true

Size: 452 Bytes

Versions: 27

Compression:

Stored size: 452 Bytes

Contents

require "#{File.dirname(__FILE__)}/test_helper"

class AuthTest < Test::Unit::TestCase
  context "An Auth object" do
    setup do
      @auth = Pork::Auth.new("username", "password", "user_agent")
    end

    should "be able to be created" do
      assert_equal "username", @auth.auth.client.username
      assert_equal "password", @auth.auth.client.password
      assert_equal "user_agent", @auth.auth.client.options[:user_agent]
    end
  end
  
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
pork_sandwich-0.4.23 test/auth_test.rb
pork_sandwich-0.4.22 test/auth_test.rb
pork_sandwich-0.4.21 test/auth_test.rb
pork_sandwich-0.4.20 test/auth_test.rb
pork_sandwich-0.4.19 test/auth_test.rb
pork_sandwich-0.4.18 test/auth_test.rb
pork_sandwich-0.4.17 test/auth_test.rb
pork_sandwich-0.4.16 test/auth_test.rb
pork_sandwich-0.4.15 test/auth_test.rb
pork_sandwich-0.4.14 test/auth_test.rb
pork_sandwich-0.4.13 test/auth_test.rb
pork_sandwich-0.4.12 test/auth_test.rb
pork_sandwich-0.4.11 test/auth_test.rb
pork_sandwich-0.4.10 test/auth_test.rb
pork_sandwich-0.4.9 test/auth_test.rb
pork_sandwich-0.4.8 test/auth_test.rb
pork_sandwich-0.4.7 test/auth_test.rb
pork_sandwich-0.4.6 test/auth_test.rb
pork_sandwich-0.4.5 test/auth_test.rb
pork_sandwich-0.4.4 test/auth_test.rb