spec/unit/configuration_spec.rb in influxdb-rails-0.1.10 vs spec/unit/configuration_spec.rb in influxdb-rails-0.1.11
- old
+ new
@@ -6,24 +6,24 @@
end
describe "#ignore_user_agent?" do
it "should be true for user agents that have been set as ignorable" do
@configuration.ignored_user_agents = %w{Googlebot}
- @configuration.ignore_user_agent?("Googlebot/2.1").should be_truthy
+ expect(@configuration.ignore_user_agent?("Googlebot/2.1")).to be_truthy
end
it "should be false for user agents that have not been set as ignorable" do
@configuration.ignored_user_agents = %w{Googlebot}
- @configuration.ignore_user_agent?("Mozilla/5.0").should be_falsey
+ expect(@configuration.ignore_user_agent?("Mozilla/5.0")).to be_falsey
end
it "should be false if the ignored user agents list is empty" do
@configuration.ignored_user_agents = []
- @configuration.ignore_user_agent?("Googlebot/2.1").should be_falsey
+ expect(@configuration.ignore_user_agent?("Googlebot/2.1")).to be_falsey
end
it "should be false if the ignored user agents list is inadvertently set to nil" do
@configuration.ignored_user_agents = nil
- @configuration.ignore_user_agent?("Googlebot/2.1").should be_falsey
+ expect(@configuration.ignore_user_agent?("Googlebot/2.1")).to be_falsey
end
end
end