move capybara scenarios to spec/features

This commit is contained in:
Dmitriy Zaporozhets 2013-02-21 10:41:37 +02:00
parent 9f722427e5
commit 03f6a28ec0
18 changed files with 3 additions and 1 deletions

View file

@ -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