diff options
author | Johan Sørensen <johan@johansorensen.com> | 2010-01-07 15:05:08 +0100 |
---|---|---|
committer | Johan Sørensen <johan@johansorensen.com> | 2010-01-07 15:05:08 +0100 |
commit | f963b7fa4bed6296e786ffd1a8df79f67873fe2e (patch) | |
tree | 5c5237c59ee03bd75c9da33f4079a497a2777966 | |
parent | 393b99810fea3fd3004c115c4a9ca79f17cf9eb5 (diff) | |
download | gitorious-mainline-outdated-f963b7fa4bed6296e786ffd1a8df79f67873fe2e.zip gitorious-mainline-outdated-f963b7fa4bed6296e786ffd1a8df79f67873fe2e.tar.gz gitorious-mainline-outdated-f963b7fa4bed6296e786ffd1a8df79f67873fe2e.tar.bz2 |
Fixed a couple of FavoritesControllerTest pending tests
-rw-r--r-- | test/functional/favorites_controller_test.rb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/functional/favorites_controller_test.rb b/test/functional/favorites_controller_test.rb index 83f36e7..4fec95f 100644 --- a/test/functional/favorites_controller_test.rb +++ b/test/functional/favorites_controller_test.rb @@ -165,12 +165,16 @@ class FavoritesControllerTest < ActionController::TestCase assert_response :success end - should_eventually "have a button to toggle the mail flag" do - flunk + should "have a button to toggle the mail flag" do + get :index + assert_response :success + assert_select "td.notification .favorite a.toggle" end - should_eventually "have a button to delete the favorite" do - flunk + should "have a button to delete the favorite" do + get :index + assert_response :success + assert_select "td.unwatch .favorite a.watch-link" end end @@ -188,11 +192,11 @@ class FavoritesControllerTest < ActionController::TestCase assert_response :not_found end - should_eventually "be able to add the mail flag" do + should "be able to add the mail flag" do assert !@favorite.notify_by_email? get :update, :id => @favorite.id, :favorite => {:notify_by_email => true} assert_response :redirect - assert_redirected to favorites_path + assert_redirected_to favorites_path assert @favorite.reload.notify_by_email? end |