Closed jrmario99 closed 8 years ago
Correção do DEPRECATION WARNING
$ git diff test/integration/home_test.rb
diff --git i/test/integration/home_test.rb w/test/integration/home_test.rb
index d925efb..e17fc2d 100644
--- i/test/integration/home_test.rb
+++ w/test/integration/home_test.rb
@@ -28,7 +28,7 @@ class HomeTest < ActionDispatch::IntegrationTest
elements.each do |elem|
assert_select "b", text: current_contest.title
assert_select "p", 3
- assert_select "a[href=?]", current_contest.id
+ assert_select "a[href=?]", contest_path(current_contest)
end
end
end
@@ -40,7 +40,7 @@ class HomeTest < ActionDispatch::IntegrationTest
elements.each do |elem|
assert_select "b", text: old_contest.title
assert_select "p", 9
- assert_select "a[href=?]", old_contest.id
+ assert_select "a[href=?]", contest_path(old_contest)
end
end
end
Não estão passando todos os testes
$ bundle exec rake test
Started
FAIL["test_dates_opening_should_be_minor_or_equals_yours_closings", ContestTest, 2015-12-04 14:59:48 -0200]
test_dates_opening_should_be_minor_or_equals_yours_closings#ContestTest (1449248388.27s)
Failed assertion, no message given.
test/models/contest_test.rb:25:in `block in <class:ContestTest>'
FAIL["test_dates_should_be_bigger_or_equal_than_today", ContestTest, 2015-12-04 14:59:48 -0200]
test_dates_should_be_bigger_or_equal_than_today#ContestTest (1449248388.96s)
Failed assertion, no message given.
test/models/contest_test.rb:41:in `block in <class:ContestTest>'
Fazer o teste de ingração para página incial