Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove unused parameter.

  • Loading branch information...
commit 09544faf45a99f7c3cb490f4c7e351c18498d733 1 parent 7b3d6d0
@gabebw gabebw authored
View
6 lib/shoulda/matchers/active_record/have_db_column_matcher.rb
@@ -16,12 +16,11 @@ module ActiveRecord # :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 @@ def expectation
expected = "#{model_class.name} to #{description}"
end
end
-
end
end
end
View
5 lib/shoulda/matchers/active_record/have_db_index_matcher.rb
@@ -19,12 +19,11 @@ module ActiveRecord # :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
Please sign in to comment.
Something went wrong with that request. Please try again.