Remove unused parameter.
This commit is contained in:
parent
7b3d6d0f86
commit
09544faf45
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue