Sha256: 3a7394724fc14c344f44f0480c8eaafacfa4b155f731451311f0dfea43e282cc

Contents?: true

Size: 485 Bytes

Versions: 5

Compression:

Stored size: 485 Bytes

Contents

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

describe "UserAgent: 'amaya/9.51 libwww/5.4.0'" do
  before do
    @useragent = UserAgent.parse("amaya/9.51 libwww/5.4.0")
  end

  it "should return 'amaya' as its browser" do
    @useragent.browser.should == "amaya"
  end

  it "should return '9.51' as its version" do
    @useragent.version.should == "9.51"
  end

  it "should return '5.4.0' as its libwww version" do
    @useragent.libwww.version.should == "5.4.0"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stella-0.5.4 vendor/useragent/spec/browsers/other_user_agent_spec.rb
stella-0.5.5 vendor/useragent/spec/browsers/other_user_agent_spec.rb
stella-0.5.1 vendor/useragent/spec/browsers/other_user_agent_spec.rb
stella-0.5.3 vendor/useragent/spec/browsers/other_user_agent_spec.rb
stella-0.3.2 vendor/useragent/spec/browsers/other_user_agent_spec.rb