From f6d6409cf2ddc0223831e9c0981fe93e31e391d1 Mon Sep 17 00:00:00 2001 From: Judy Tuan Date: Tue, 3 Apr 2012 22:08:28 -0700 Subject: [PATCH] made the failing tests pass. --- spec/requests/events_spec.rb | 2 +- spec/requests/users_spec.rb | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/spec/requests/events_spec.rb b/spec/requests/events_spec.rb index d0799f038..f06fa4a68 100644 --- a/spec/requests/events_spec.rb +++ b/spec/requests/events_spec.rb @@ -35,7 +35,7 @@ visit events_path page.should have_content("March Event") - page.should have_content("Volunteer") + page.should have_button("Volunteer") @event = Event.where(:title=> 'March Event').first visit volunteer_path(@event) page.should have_content("Thanks for volunteering") diff --git a/spec/requests/users_spec.rb b/spec/requests/users_spec.rb index 52d9b13fe..fed525c0e 100644 --- a/spec/requests/users_spec.rb +++ b/spec/requests/users_spec.rb @@ -66,9 +66,11 @@ click_button "Update" - page.should have_content("Thanks for adding your skills") - - +# Commenting this out because we might not want skills to be tied to accounts. +# page.should have_content("You updated your account successfully.") + + @user = User.find(@user.id) + @user.teaching.should be_true @user.taing.should be_true @user.coordinating.should be_true