Skip to content

Commit

Permalink
WIP: style
Browse files Browse the repository at this point in the history
  • Loading branch information
Flink committed Feb 7, 2024
1 parent c1ebfa4 commit f36eee8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/lib/rubocop/cop/plugins/discourse_event_spec.rb
Expand Up @@ -22,17 +22,17 @@
context "when `DiscourseEvent.on` is called" do
it "registers an offense" do
expect_offense(<<~RUBY, "plugin.rb")
DiscourseEvent.on(:topic_status_updated) { do_something }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Discourse/Plugins/DiscourseEvent: Use `on` instead of `DiscourseEvent.on` [...]
RUBY
DiscourseEvent.on(:topic_status_updated) { do_something }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Discourse/Plugins/DiscourseEvent: Use `on` instead of `DiscourseEvent.on` [...]
RUBY
end
end

context "when `on` is called" do
it "does not register an offense" do
expect_no_offenses(<<~RUBY, "plugin.rb")
on(:topic_status_updated) { do_something }
RUBY
on(:topic_status_updated) { do_something }
RUBY
end
end
end
Expand Down

0 comments on commit f36eee8

Please sign in to comment.