Skip to content

Commit

Permalink
Fix incorrect message for eq_time matcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed Sep 3, 2020
1 parent 76c3fae commit f5d5a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rubocop/cop/discourse/time_eq_matcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Discourse
# Use `time_eq` matcher with timestamps in specs.
# Use `eq_time` matcher with timestamps in specs.
#
# @example
# # bad
Expand All @@ -12,7 +12,7 @@ module Discourse
# # good
# expect(user.created_at).to eq_time(Time.zone.now)
class TimeEqMatcher < Cop
MSG = "Use time_eq when testing timestamps"
MSG = "Use eq_time when testing timestamps"

def_node_matcher :using_eq_matcher_with_timestamp?, <<-MATCHER
(send
Expand Down

0 comments on commit f5d5a75

Please sign in to comment.