Permalink
Browse files

Since an unsuccessful profile update shouldn't ping hubs, there's no …

…need to use a VCR cassette in tests of unsuccessful profile updates
  • Loading branch information...
1 parent 5e405f6 commit 04dc420adbb9a2acf989ff0472eb7d8685d5a80f @carols10cents carols10cents committed Nov 22, 2012
Showing with 4 additions and 12 deletions.
  1. +4 −12 test/acceptance/edit_profile_test.rb
@@ -42,9 +42,7 @@
fill_in "username", :with => "foobar"
- VCR.use_cassette("update_profile_username") do
- click_button "Save"
- end
+ click_button "Save"
within flash do
assert has_content?("Username has already been taken")
@@ -68,9 +66,7 @@
fill_in "username", :with => "#foobar."
- VCR.use_cassette("update_profile_invalid_username") do
- click_button "Save"
- end
+ click_button "Save"
within flash do
assert has_content?("Username contains restricted characters")
@@ -97,9 +93,7 @@
fill_in "password", :with => "new_password"
fill_in "password_confirm", :with => "bunk"
- VCR.use_cassette("update_profile_password_mismatch") do
- click_button "Save"
- end
+ click_button "Save"
within flash do
assert has_content?("Sorry, 1 error we need you to fix:")
@@ -117,9 +111,7 @@
fill_in "password", :with => "new_password"
fill_in "password_confirm", :with => "bunk"
- VCR.use_cassette("update_profile_multiple_errors") do
- click_button "Save"
- end
+ click_button "Save"
within flash do
assert has_content?("Sorry, 3 errors we need you to fix:")

0 comments on commit 04dc420

Please sign in to comment.