Updated router. Temporarly replaced routing filter with rails internal.
This commit is contained in:
parent
b71fcdf371
commit
eab16e337e
21 changed files with 190 additions and 128 deletions
|
|
@ -83,10 +83,10 @@ class ApplicationCheckerTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def test_named_scope_left_over
|
||||
make_file("app/models", "post.rb", "named_scope :failure")
|
||||
make_file("app/models", "post.rb", "scope :failure")
|
||||
@checker.check_ar_methods
|
||||
|
||||
assert @checker.alerts.has_key?("named_scope is now just scope")
|
||||
assert @checker.alerts.has_key?("scope is now just scope")
|
||||
end
|
||||
|
||||
def test_check_routes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue