Permalink
Browse files

Removed unnecessary alias.

  • Loading branch information...
1 parent 4dd8974 commit e245aa250c1fbb1bf3ed6ac6b3d8f224d906613d @jnunemaker committed Mar 24, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 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)

0 comments on commit e245aa2

Please sign in to comment.