Sha256: ad15f963d39f604e5a44d94fc235520a96d2bf6d763e4dbc8109950b67797a67
Contents?: true
Size: 466 Bytes
Versions: 6
Compression:
Stored size: 466 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' } expect(UserAgent.value).to eq('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