spec/zen/package/sections/helper/section.rb in zen-0.3 vs spec/zen/package/sections/helper/section.rb in zen-0.4

- old
+ new

@@ -1,8 +1,8 @@ require File.expand_path('../../../../../helper', __FILE__) -describe('Ramaze::Helper::Section') do +describe 'Ramaze::Helper::Section' do behaves_like :capybara status_id = Sections::Model::SectionEntryStatus[:name => 'published'].id user_id = Users::Model::User[:email => 'spec@domain.tld'].id section = Sections::Model::Section.create( @@ -18,37 +18,37 @@ :user_id => user_id, :section_entry_status_id => status_id, :section_id => section.id ) - it('Validate a valid section') do + it 'Validate a valid section' do url = Sections::Controller::Sections.r(:edit, section.id).to_s visit(url) current_path.should == url end - it('Validate an invalid section') do + it 'Validate an invalid section' do url = Sections::Controller::Sections.r(:edit, section.id + 1).to_s index = Sections::Controller::Sections.r(:index).to_s visit(url) current_path.should == index end - it('Validate a valid section entry') do + it 'Validate a valid section entry' do url = Sections::Controller::SectionEntries.r( :edit, section.id, entry.id ).to_s visit(url) current_path.should == url end - it('Validate an invalid section entry') do + it 'Validate an invalid section entry' do index = Sections::Controller::SectionEntries.r(:index, section.id).to_s url = Sections::Controller::SectionEntries.r( :edit, section.id, entry.id + 1 ).to_s