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

Version Path
analytical-3.0.8 spec/analytical/bot_detector_spec.rb
analytical-3.0.7 spec/analytical/bot_detector_spec.rb
analytical-3.0.6 spec/analytical/bot_detector_spec.rb
gsiener-analytical-2.10.2 spec/analytical/bot_detector_spec.rb
gsiener-analytical-2.10.1 spec/analytical/bot_detector_spec.rb
analytical-2.11.0 spec/analytical/bot_detector_spec.rb
analytical-2.10.0 spec/analytical/bot_detector_spec.rb
gsiener-analytical-2.10.0 spec/analytical/bot_detector_spec.rb
analytical-2.9.0 spec/analytical/bot_detector_spec.rb
analytical-2.8.0 spec/analytical/bot_detector_spec.rb
analytical-2.7.2 spec/analytical/bot_detector_spec.rb
analytical-2.7.1 spec/analytical/bot_detector_spec.rb
analytical-2.7.0 spec/analytical/bot_detector_spec.rb
analytical-2.6.0 spec/analytical/bot_detector_spec.rb
analytical-2.5.0 spec/analytical/bot_detector_spec.rb
analytical-2.4.0 spec/analytical/bot_detector_spec.rb
analytical-2.3.0 spec/analytical/bot_detector_spec.rb
analytical-2.2.0 spec/analytical/bot_detector_spec.rb
analytical-2.1.0 spec/analytical/bot_detector_spec.rb
analytical-2.0.0 spec/analytical/bot_detector_spec.rb