spec/integration/metrics_spec.rb in influxdb-rails-0.1.10 vs spec/integration/metrics_spec.rb in influxdb-rails-0.1.11
- old
+ new
@@ -8,15 +8,15 @@
end
end
describe "in a normal request" do
it "should attempt to handle ActionController metrics" do
- InfluxDB::Rails.should_receive(:handle_action_controller_metrics).once
+ expect(InfluxDB::Rails).to receive(:handle_action_controller_metrics).once
get "/widgets"
end
it "should result in attempts to write metrics via the client" do
- InfluxDB::Rails.client.should_receive(:write_point).exactly(3).times
+ expect(InfluxDB::Rails.client).to receive(:write_point).exactly(3).times
get "/widgets"
end
end
end