spec/user_agent_spec.rb in fivepointssolutions-uaid-0.1.0 vs spec/user_agent_spec.rb in fivepointssolutions-uaid-0.1.1
- old
+ new
@@ -39,9 +39,12 @@
it 'should answer for product' do
stub(@user_agent).product { 'someproduct' }
@user_agent.someproduct?.should be_true
@user_agent.otherproduct?.should be_false
+
+ stub(@user_agent).product { 'noagent' }
+ @user_agent.bot?.should be_false
end
it 'should answer for version' do
stub(@user_agent).version { '2' }
@user_agent.version?('2').should be_true
\ No newline at end of file