Remove backward compatibility of factories.

This commit is contained in:
Vincent Bonmalais 2012-11-06 14:31:55 +11:00
parent d52f06f380
commit 80fb38de7a
54 changed files with 261 additions and 279 deletions

View file

@ -3,14 +3,14 @@ require 'spec_helper'
describe "Search" do
before do
login_as :user
@project = Factory :project
@project = create(:project)
@project.add_access(@user, :read)
visit search_path
fill_in "search", with: @project.name[0..3]
click_button "Search"
end
it "should show project in search results" do
it "should show project in search results" do
page.should have_content @project.name
end
end