diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-21 12:41:37 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-21 12:41:37 +0400 |
commit | 03f6a28ec0dab308070e83ec422f12fa289aad9f (patch) | |
tree | a2b72dd5944863f38f7c7397590626223ab0fc5a /spec/features/search_spec.rb | |
parent | 9f722427e5835e4aeb5c1dd6a9cc8720b40d87c0 (diff) |
move capybara scenarios to spec/features
Diffstat (limited to 'spec/features/search_spec.rb')
-rw-r--r-- | spec/features/search_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/features/search_spec.rb b/spec/features/search_spec.rb new file mode 100644 index 00000000000..e338f359f88 --- /dev/null +++ b/spec/features/search_spec.rb @@ -0,0 +1,17 @@ +require 'spec_helper' + +describe "Search" do + before do + login_as :user + @project = create(:project) + @project.team << [@user, :reporter] + visit search_path + fill_in "search", with: @project.name[0..3] + click_button "Search" + end + + it "should show project in search results" do + page.should have_content @project.name + end +end + |