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

View File

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