Skip to content

Commit

Permalink
Merge pull request #54 from experimatt/master
Browse files Browse the repository at this point in the history
Fix matcher description when list of arguments is passed
  • Loading branch information
rmm5t authored Apr 1, 2020
2 parents 18cba8a + 8f4cd00 commit 315ab24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/strip_attributes/matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def failure_message_when_negated # RSpec 3.x
alias_method :negative_failure_message, :failure_message_when_negated # RSpec 1.1

def description
"#{expectation(false)} whitespace from ##{@attribute}"
"#{expectation(false)} whitespace from #{@attributes.map {|el| "##{el}" }.to_sentence}"
end

private
Expand Down

0 comments on commit 315ab24

Please sign in to comment.