Sha256: 84c0241fb5049fa2a0a1502969bd6aba3fa1b43754cd72b88f3e3c3d20392681

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

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

describe Mona::Client do
  before do
    Mona.stub(:version) { '0.7.2' }
  end
  context :with_args do
    subject { Mona::Client.new(agent_name: 'UnkoBrowser') }
    its(:agent_name) { should eq 'UnkoBrowser/0.7.2 (ruby-mona)' }
  end
  context :without_args do
    subject { Mona::Client.new }
    its(:agent_name) { should eq 'Monazilla/0.7.2 (ruby-mona)' }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mona-0.4.0 spec/client_spec.rb
mona-0.3.0 spec/client_spec.rb
mona-0.2.1 spec/client_spec.rb
mona-0.2.0 spec/client_spec.rb
mona-0.1.0 spec/client_spec.rb