Remove unused parameter.

This commit is contained in:
Gabe Berke-Williams 2012-03-30 11:36:04 -04:00
parent 7b3d6d0f86
commit 09544faf45
2 changed files with 4 additions and 7 deletions

View File

@ -16,12 +16,11 @@ module Shoulda # :nodoc:
# with_options(:precision => 10, :scale => 2) }
#
def have_db_column(column)
HaveDbColumnMatcher.new(:have_db_column, column)
HaveDbColumnMatcher.new(column)
end
class HaveDbColumnMatcher # :nodoc:
def initialize(macro, column)
@macro = macro
def initialize(column)
@column = column
end
@ -163,7 +162,6 @@ module Shoulda # :nodoc:
expected = "#{model_class.name} to #{description}"
end
end
end
end
end

View File

@ -19,12 +19,11 @@ module Shoulda # :nodoc:
# it { should have_db_index(:ssn).unique(true) }
#
def have_db_index(columns)
HaveDbIndexMatcher.new(:have_index, columns)
HaveDbIndexMatcher.new(columns)
end
class HaveDbIndexMatcher # :nodoc:
def initialize(macro, columns)
@macro = macro
def initialize(columns)
@columns = normalize_columns_to_array(columns)
end