Skip to content

Commit 84fe374

Browse files
committed
Fix rubocop violations
1 parent ef8fdd6 commit 84fe374

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

lib/influxdb/rails/middleware/subscriber.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ def enabled?
2121
end
2222
end
2323
end
24-
end
24+
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<div>item</div
1+
<div>item</div

spec/support/views/widgets/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
<div>
33
<%= render partial: 'item' %>
44
<%= render partial: 'item', collection: [1,2,3] %>
5-
</div>
5+
</div>

spec/unit/middleware/render_subscriber_spec.rb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@
1717
let(:payload) { { identifier: "index.html", count: 43, cache_hits: 42 } }
1818
let(:result) {
1919
{
20-
values:
21-
{
20+
values: {
2221
value: 2000
2322
},
24-
tags:
25-
{
26-
filename: "index.html",
27-
location: "Foo#bar",
28-
count: 43,
23+
tags: {
24+
filename: "index.html",
25+
location: "Foo#bar",
26+
count: 43,
2927
cache_hits: 42
3028
},
3129
timestamp: 1_517_567_370_000
@@ -44,7 +42,7 @@
4442
Thread.current[:_influxdb_rails_controller] = nil
4543
end
4644

47-
context 'successfully' do
45+
context "successfully" do
4846
it "writes to InfluxDB" do
4947
expect_any_instance_of(InfluxDB::Client).to receive(:write_point).with(
5048
series_name, result

0 commit comments

Comments
 (0)