Sha256: de3fa25f7ed3ab3cfa4018f41f5ffba76064ea9944a1c47ae284b75fa5bc79c2
Contents?: true
Size: 461 Bytes
Versions: 6
Compression:
Stored size: 461 Bytes
Contents
require 'spec_helper' module Maid describe UserAgent do describe 'the user agent string' do it 'is formatted with the Maid version, platform version, and Ruby version' do stub_const('RUBY_DESCRIPTION', 'ruby 1.8.8p0 (1970-01-01 revision 1) [pdp7-unix]') ::Maid.stub(:const_get).with(:VERSION) { '0.0.1' } UserAgent.value.should == 'Maid/0.0.1 (ruby 1.8.8p0 (1970-01-01 revision 1) [pdp7-unix])' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems