diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-09 09:14:05 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-09 09:14:05 +0400 |
commit | 2f6603e58174e5aff35fbc0ce6a9616dc77b077a (patch) | |
tree | 86a4383571f73ad2666cc879ae67c1fb5059cf70 /spec | |
parent | ab344f31b6a9b9456ffed1d30fb77bc6bd0a2381 (diff) |
A bit of spinach tests
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/projects_spec.rb | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/spec/requests/projects_spec.rb b/spec/requests/projects_spec.rb index 8f613b458c0..7bc48260935 100644 --- a/spec/requests/projects_spec.rb +++ b/spec/requests/projects_spec.rb @@ -3,59 +3,6 @@ require 'spec_helper' describe "Projects" do before { login_as :user } - describe "GET /projects/show" do - before do - @project = create(:project, namespace: @user.namespace) - @project.team << [@user, :reporter] - - visit project_path(@project) - end - - it "should be correct path" do - current_path.should == project_path(@project) - end - end - - describe "GET /projects/:id/edit" do - before do - @project = create(:project) - @project.team << [@user, :master] - - visit edit_project_path(@project) - end - - it "should be correct path" do - current_path.should == edit_project_path(@project) - end - - it "should have labels for new project" do - page.should have_content("Project name is") - page.should have_content("Advanced settings:") - page.should have_content("Features:") - end - end - - describe "PUT /projects/:id" do - before do - @project = create(:project, namespace: @user.namespace) - @project.team << [@user, :master] - - visit edit_project_path(@project) - - fill_in 'project_name', with: 'Awesome' - click_button "Save" - @project = @project.reload - end - - it "should be correct path" do - current_path.should == edit_project_path(@project) - end - - it "should show project" do - page.should have_content("Awesome") - end - end - describe "DELETE /projects/:id" do before do @project = create(:project, namespace: @user.namespace) |