From 6a4f8b997c9aa5866a98554aeb7718fd3b5ebe0e Mon Sep 17 00:00:00 2001 From: Saito Date: Tue, 22 Nov 2011 15:55:01 +0800 Subject: fix specs --- spec/requests/admin/admin_projects_spec.rb | 2 +- spec/requests/admin/admin_users_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/requests/admin/admin_projects_spec.rb b/spec/requests/admin/admin_projects_spec.rb index fd8703ec06a..ffa65fc255b 100644 --- a/spec/requests/admin/admin_projects_spec.rb +++ b/spec/requests/admin/admin_projects_spec.rb @@ -26,7 +26,7 @@ describe "Admin::Projects" do describe "GET /admin/projects/:id" do before do visit admin_projects_path - click_link "Show" + click_link "#{@project.name}" end it "should have project info" do diff --git a/spec/requests/admin/admin_users_spec.rb b/spec/requests/admin/admin_users_spec.rb index 04500017451..aa78db99f42 100644 --- a/spec/requests/admin/admin_users_spec.rb +++ b/spec/requests/admin/admin_users_spec.rb @@ -57,7 +57,7 @@ describe "Admin::Users" do describe "GET /admin/users/:id" do before do visit admin_users_path - click_link "Show" + click_link "#{@user.name}" end it "should have user info" do -- cgit v1.2.1