Skip to content

Commit

Permalink
no need for external access to write failure message
Browse files Browse the repository at this point in the history
replace attr_accessor with attr_reader
  • Loading branch information
twalpole committed Jun 25, 2014
1 parent addfc48 commit dd1f79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/rspec/matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def wrap(actual)
end

class HaveSelector < Matcher
attr_accessor :failure_message, :failure_message_when_negated
attr_reader :failure_message, :failure_message_when_negated

def initialize(*args)
@args = args
Expand Down

0 comments on commit dd1f79b

Please sign in to comment.