Skip to content
This repository
Browse code

Remove unused parameter.

  • Loading branch information...
commit 09544faf45a99f7c3cb490f4c7e351c18498d733 1 parent 7b3d6d0
Gabe Berke-Williams authored March 30, 2012
6  lib/shoulda/matchers/active_record/have_db_column_matcher.rb
@@ -16,12 +16,11 @@ module ActiveRecord # :nodoc:
16 16
       #                 with_options(:precision => 10, :scale => 2) }
17 17
       #
18 18
       def have_db_column(column)
19  
-        HaveDbColumnMatcher.new(:have_db_column, column)
  19
+        HaveDbColumnMatcher.new(column)
20 20
       end
21 21
 
22 22
       class HaveDbColumnMatcher # :nodoc:
23  
-        def initialize(macro, column)
24  
-          @macro  = macro
  23
+        def initialize(column)
25 24
           @column = column
26 25
         end
27 26
 
@@ -163,7 +162,6 @@ def expectation
163 162
           expected = "#{model_class.name} to #{description}"
164 163
         end
165 164
       end
166  
-
167 165
     end
168 166
   end
169 167
 end
5  lib/shoulda/matchers/active_record/have_db_index_matcher.rb
@@ -19,12 +19,11 @@ module ActiveRecord # :nodoc:
19 19
       #   it { should have_db_index(:ssn).unique(true) }
20 20
       #
21 21
       def have_db_index(columns)
22  
-        HaveDbIndexMatcher.new(:have_index, columns)
  22
+        HaveDbIndexMatcher.new(columns)
23 23
       end
24 24
 
25 25
       class HaveDbIndexMatcher # :nodoc:
26  
-        def initialize(macro, columns)
27  
-          @macro = macro
  26
+        def initialize(columns)
28 27
           @columns = normalize_columns_to_array(columns)
29 28
         end
30 29
 

0 notes on commit 09544fa

Please sign in to comment.
Something went wrong with that request. Please try again.