Fix abilities definition and related specs

This commit is contained in:
Senén Rodero Rodríguez
2017-08-24 02:11:13 +02:00
parent 8e91bbe5b5
commit 0fbffdc73e
7 changed files with 13 additions and 6 deletions

View File

@@ -155,7 +155,7 @@ shared_examples "documentable" do |documentable_factory_name, documentable_path,
expect(page).to have_content("You must sign in or register to continue.")
end
scenario "Should not be able for other users" do
scenario "Should be able for other users" do
login_as create(:user)
visit new_document_path(documentable_type: documentable.class.name,