summaryrefslogtreecommitdiff
path: root/spec/features/admin/runners_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/admin/runners_spec.rb')
-rw-r--r--spec/features/admin/runners_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/features/admin/runners_spec.rb b/spec/features/admin/runners_spec.rb
index 5fe1130..a966aee 100644
--- a/spec/features/admin/runners_spec.rb
+++ b/spec/features/admin/runners_spec.rb
@@ -16,6 +16,19 @@ describe "Admin Runners" do
it { page.has_text? "Manage Runners" }
it { page.has_text? "To register a new runner" }
+
+ describe 'search' do
+ before do
+ FactoryGirl.create :runner, description: 'foo'
+ FactoryGirl.create :runner, description: 'bar'
+
+ fill_in 'search', with: 'foo'
+ click_button 'Search'
+ end
+
+ it { page.should have_content("foo") }
+ it { page.should_not have_content("bar") }
+ end
end
describe "GET /admin/runners/:id" do