OSDN Git Service

Fix spinach tests
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Thu, 14 Mar 2013 15:13:00 +0000 (17:13 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Thu, 14 Mar 2013 15:13:00 +0000 (17:13 +0200)
features/steps/userteams/userteams.rb

index 5835deb..11a66b6 100644 (file)
@@ -73,9 +73,9 @@ class Userteams < Spinach::FeatureSteps
   end
 
   Then 'I should see projects list' do
-    page.should have_css(".projects_box")
-    projects_box = find(".projects_box")
-    projects_box.should have_content(@project.name)
+    within(".side .ui-box") do
+      page.should have_content(@project.name)
+    end
   end
 
   And 'project from team has issues assigned to me' do