Permalink
Browse files

Added the ability for the organizer user to see the sessions page

  • Loading branch information...
1 parent b92a74e commit 78b714967a525a842a29928b33b71115e13f7735 @senior senior committed Mar 29, 2011
Showing with 4 additions and 6 deletions.
  1. +0 −2 features/review_submissions.feature
  2. +0 −3 features/step_definitions/session_steps.rb
  3. +4 −1 spec/factories.rb
@@ -92,9 +92,7 @@ Feature: As a conference talks reviewer
Then I should see "accepted"
And I follow "Proposals"
Then I should see "accepted"
- Then show me the page
When I am on the default conference session page
- Then show me the page
Then I should see "Start time"
Scenario: Conference organizer rejects an approved proposals
@@ -2,7 +2,4 @@
ConferenceSession.destroy_all
end
-Then /^I should see (\d+) conference session$/ do |arg1|
- pending # express the regexp above with the code you wish you had
-end
View
@@ -43,7 +43,10 @@
Factory.define :organizer, :parent => :reviewer do |u|
u.username 'organizer'
- u.after_create {|user| user.roles << Role[:organizer] }
+ u.after_create do |user|
+ user.plugins.create(:name => "conference_sessions", :position => 1)
+ user.roles << Role[:organizer]
+ end
end
Factory.define :speaker do |s|

0 comments on commit 78b7149

Please sign in to comment.