Commit c610347cc19e615d0fe87950f7e3d6887317ac55
1 parent
d0df8a6f
Exists in
master
and in
4 other branches
Removed not relevant tests for admin.projects
Showing
3 changed files
with
1 additions
and
45 deletions
Show diff stats
app/views/admin/projects/show.html.haml
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 | ... | ... |