Commit aebe0ddc authored by Douwe Maan's avatar Douwe Maan

Make spec names more clear

parent 58cdfba9
...@@ -25,23 +25,26 @@ describe ProjectsController do ...@@ -25,23 +25,26 @@ describe ProjectsController do
context "rendering default project view" do context "rendering default project view" do
render_views render_views
it "shold render the activity view", focus: true do it "renders the activity view" do
allow(controller).to receive(:current_user).and_return(user) allow(controller).to receive(:current_user).and_return(user)
allow(user).to receive(:project_view).and_return('activity') allow(user).to receive(:project_view).and_return('activity')
get :show, namespace_id: public_project.namespace.path, id: public_project.path get :show, namespace_id: public_project.namespace.path, id: public_project.path
expect(response).to render_template('_activity') expect(response).to render_template('_activity')
end end
it "shold render the readme view", focus: true do it "renders the readme view" do
allow(controller).to receive(:current_user).and_return(user) allow(controller).to receive(:current_user).and_return(user)
allow(user).to receive(:project_view).and_return('readme') allow(user).to receive(:project_view).and_return('readme')
get :show, namespace_id: public_project.namespace.path, id: public_project.path get :show, namespace_id: public_project.namespace.path, id: public_project.path
expect(response).to render_template('_readme') expect(response).to render_template('_readme')
end end
it "shold render the files view", focus: true do it "renders the files view" do
allow(controller).to receive(:current_user).and_return(user) allow(controller).to receive(:current_user).and_return(user)
allow(user).to receive(:project_view).and_return('files') allow(user).to receive(:project_view).and_return('files')
get :show, namespace_id: public_project.namespace.path, id: public_project.path get :show, namespace_id: public_project.namespace.path, id: public_project.path
expect(response).to render_template('_files') expect(response).to render_template('_files')
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment