summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-30 12:51:03 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-30 12:51:03 +0200
commitad765353f6f62028c0b5331f90210480127d1551 (patch)
treee6a5ae1f714fc97e9f09456a887f7a640bc8b016
parentb9ccc79cb5d67e356edce3778b6a17def985ed22 (diff)
downloadgitlab-ce-ad765353f6f62028c0b5331f90210480127d1551.tar.gz
Fix sometimes failing tests
-rw-r--r--spec/features/ci/admin/runners_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/ci/admin/runners_spec.rb b/spec/features/ci/admin/runners_spec.rb
index 5fb3b93525b..b83744f53a8 100644
--- a/spec/features/ci/admin/runners_spec.rb
+++ b/spec/features/ci/admin/runners_spec.rb
@@ -19,16 +19,16 @@ describe "Admin Runners" do
describe 'search' do
before do
- FactoryGirl.create :ci_runner, description: 'foo'
- FactoryGirl.create :ci_runner, description: 'bar'
+ FactoryGirl.create :ci_runner, description: 'runner-foo'
+ FactoryGirl.create :ci_runner, description: 'runner-bar'
search_form = find('#runners-search')
- search_form.fill_in 'search', with: 'foo'
+ search_form.fill_in 'search', with: 'runner-foo'
search_form.click_button 'Search'
end
- it { expect(page).to have_content("foo") }
- it { expect(page).not_to have_content("bar") }
+ it { expect(page).to have_content("runner-foo") }
+ it { expect(page).not_to have_content("runner-bar") }
end
end