Commit c610347cc19e615d0fe87950f7e3d6887317ac55

Authored by Dmitriy Zaporozhets
1 parent d0df8a6f

Removed not relevant tests for admin.projects

app/views/admin/projects/show.html.haml
... ... @@ -79,7 +79,7 @@
79 79 = link_to project_team_index_path(@project), class: "btn btn-tiny" do
80 80 %i.icon-edit
81 81 Edit Team
82   - %ul.well-list
  82 + %ul.well-list.team_members
83 83 - @project.users.each do |tm|
84 84 %li
85 85 %strong
... ...
features/steps/admin/admin_projects.rb
... ... @@ -16,9 +16,7 @@ class AdminProjects < Spinach::FeatureSteps
16 16 Then 'I should see project details' do
17 17 project = Project.first
18 18 current_path.should == admin_project_path(project)
19   -
20 19 page.should have_content(project.name_with_namespace)
21 20 page.should have_content(project.creator.name)
22   - page.should have_content('Add new team member')
23 21 end
24 22 end
... ...
spec/features/admin/admin_projects_spec.rb
... ... @@ -31,46 +31,4 @@ describe "Admin::Projects" do
31 31 page.should have_content(@project.name)
32 32 end
33 33 end
34   -
35   - describe "GET /admin/projects/:id/edit" do
36   - before do
37   - visit admin_projects_path
38   - click_link "edit_project_#{@project.id}"
39   - end
40   -
41   - it "should have project edit page" do
42   - page.should have_content("Edit project")
43   - page.should have_button("Save Project")
44   - end
45   -
46   - describe "Update project" do
47   - before do
48   - fill_in "project_name", with: "Big Bang"
49   - click_button "Save Project"
50   - @project.reload
51   - end
52   -
53   - it "should show page with new data" do
54   - page.should have_content("Big Bang")
55   - end
56   -
57   - it "should change project entry" do
58   - @project.name.should == "Big Bang"
59   - end
60   - end
61   - end
62   -
63   - describe "Add new team member" do
64   - before do
65   - @new_user = create(:user)
66   - visit admin_project_path(@project)
67   - end
68   -
69   - it "should create new user" do
70   - select @new_user.name, from: "user_ids"
71   - expect { click_button "Add" }.to change { UsersProject.count }.by(1)
72   - page.should have_content @new_user.name
73   - current_path.should == admin_project_path(@project)
74   - end
75   - end
76 34 end
... ...