Sha256: f22bf89f52c8bee15cc6a1713d4c497e0ae080c27ce88df9c0ebc1814db024d9
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
require 'dummy_spec_helper' feature "Concertos", %q{ In order to have an awesome musical pages As an user having role_groups 'composers' I want to do something with concertos (According to role_groups) } do background do Concerto.create!(:title => 'one') Concerto.create!(:title => 'two') @composer = User.create!(:name => 'composer', :role_groups => 'composers', :email => 'stanislaw@mail.ru') @musician = User.create! :name => 'musician', :role_groups => 'musicians', :email => 'editor@mail.ru' end scenario "Concerto index" do visit '/concertos' page.should have_content('one') page.should have_content('two') end scenario "Show concerto to composer" do visit '/login_user/composer' visit '/concertos/one' # using friendly id :) page.should have_content('one') visit '/concertos/two' page.should have_content('two') end scenario "Show concerto to musician" do visit '/login_user/musician' visit '/concertos/one' # using friendly id :) page.should have_content('one') #page.should have_content('two') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.0 | spec/integration/user/concerto_spec.rb |