Sha256: 812179be3504f71ee831173b666ca242e99c3b24def56d764b3dc47c4901ceea
Contents?: true
Size: 515 Bytes
Versions: 41
Compression:
Stored size: 515 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "Analytical::BotDetector" do class DummyForBotDetector include Analytical::BotDetector end before(:each) do @d = DummyForBotDetector.new end describe 'with nil user_agent' do it 'should return false' do @d.analytical_is_robot?(nil).should be_false end end describe 'with empty user_agent' do it 'should return false' do @d.analytical_is_robot?('').should be_false end end end
Version data entries
41 entries across 41 versions & 2 rubygems