Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unnecessary alias.

  • Loading branch information...
commit e245aa250c1fbb1bf3ed6ac6b3d8f224d906613d 1 parent 4dd8974
@jnunemaker authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/matchy/matcher_builder.rb
View
4 lib/matchy/matcher_builder.rb
@@ -15,8 +15,8 @@ def self.matcher_name
@matcher_name
end
- attr_accessor :positive_failure_message, :negative_failure_message, :chained_messages
attr_reader :matcher_name
+ attr_accessor :positive_failure_message, :negative_failure_message, :chained_messages
def initialize(match_block, test_case)
@match_block, @test_case = match_block, test_case
@@ -41,8 +41,8 @@ def fail!(which)
def pass!(which)
@test_case.assert true
end
+
alias_method :failure_message, :positive_failure_message
- alias_method :negative_failure_message, :negative_failure_message
end
Class.new(&body).new(match_block, self)
Please sign in to comment.
Something went wrong with that request. Please try again.