Make spec names more clear

This commit is contained in:
Douwe Maan 2015-10-17 19:27:02 +02:00
parent 58cdfba9b9
commit aebe0ddc33
1 changed files with 6 additions and 3 deletions

View File

@ -25,23 +25,26 @@ describe ProjectsController do
context "rendering default project view" do
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(user).to receive(:project_view).and_return('activity')
get :show, namespace_id: public_project.namespace.path, id: public_project.path
expect(response).to render_template('_activity')
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(user).to receive(:project_view).and_return('readme')
get :show, namespace_id: public_project.namespace.path, id: public_project.path
expect(response).to render_template('_readme')
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(user).to receive(:project_view).and_return('files')
get :show, namespace_id: public_project.namespace.path, id: public_project.path
expect(response).to render_template('_files')
end