Sha256: 0b9b2dea0333f0e9b962a5523b175844a76a6a958189e5a30c65b5921faa6acb
Contents?: true
Size: 492 Bytes
Versions: 22
Compression:
Stored size: 492 Bytes
Contents
require 'dummy_spec_helper' feature "Articles", %q{ In order to have an awesome blog As an admin masquerading as a user I want to read and edit articles but not be able to create articles } do background do Article.create!(:title => 'One') Article.create!(:title => 'Two') end scenario "Article index" do visit '/articles/admin' page.should have_content('One') page.should_not have_content('New article') #page.should have_content('Edit') end end
Version data entries
22 entries across 22 versions & 1 rubygems