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-1.9.0 spec/analytical/bot_detector_spec.rb
analytical-1.8.0 spec/analytical/bot_detector_spec.rb
analytical-1.7.0 spec/analytical/bot_detector_spec.rb
analytical-1.6.0 spec/analytical/bot_detector_spec.rb
analytical-1.5.0 spec/analytical/bot_detector_spec.rb
analytical-1.4.0 spec/analytical/bot_detector_spec.rb
analytical-1.3.0 spec/analytical/bot_detector_spec.rb
analytical-1.2.0 spec/analytical/bot_detector_spec.rb
analytical-1.1.1 spec/analytical/bot_detector_spec.rb
analytical-1.1.0 spec/analytical/bot_detector_spec.rb
analytical-1.0.0 spec/analytical/bot_detector_spec.rb
analytical-0.16.0 spec/analytical/bot_detector_spec.rb
analytical-0.15.0 spec/analytical/bot_detector_spec.rb
analytical-0.14.0 spec/analytical/bot_detector_spec.rb
analytical-0.13.0 spec/analytical/bot_detector_spec.rb
analytical-0.12.0 spec/analytical/bot_detector_spec.rb
analytical-0.11.0 spec/analytical/bot_detector_spec.rb
analytical-0.10.0 spec/analytical/bot_detector_spec.rb
analytical-0.9.0 spec/analytical/bot_detector_spec.rb
analytical-0.8.0 spec/analytical/bot_detector_spec.rb