Sha256: 2e0002b2ebfb69df8a7445470521159a14c3a5651c9ce00b5b34979a5cd42ac8

Contents?: true

Size: 437 Bytes

Versions: 5

Compression:

Stored size: 437 Bytes

Contents

require "test_helper"

class CallerTest < Test::Unit::TestCase
  def setup
    AppStore::Caller.send(:public, *AppStore::Caller.protected_instance_methods) 
  end
  
  should "returns a mechanize agent on call to agent" do
    assert_kind_of WWW::Mechanize, AppStore::Caller.agent
  end

  should "set mechanize user agent to iTunes-iPhone/3.0 (2)" do
    assert_equal 'iTunes-iPhone/3.0 (2)', AppStore::Caller.agent.user_agent
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
app_store-0.1.2 test/client_test.rb
app_store-0.1.0 test/client_test.rb
app_store-0.0.4 test/caller_test.rb
app_store-0.0.3 test/caller_test.rb
app_store-0.0.1 test/caller_test.rb