72 lines
1.6 KiB
Ruby
72 lines
1.6 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe "Session Info", :js => true, :type => :feature, :capybara_feature => true do
|
|
|
|
let (:user) { FactoryGirl.create(:user) }
|
|
|
|
before(:all) do
|
|
MusicSession.delete_all
|
|
end
|
|
|
|
before(:each) do
|
|
create_session(creator: user)
|
|
formal_leave_by(user)
|
|
end
|
|
|
|
# musician_access = true, approval_required = true
|
|
it "should allow only session invitees to view for 'XXX' option before session starts" do
|
|
end
|
|
|
|
# musician_access = false, approval_required = false
|
|
it "should allow only RSVP approvals to view for 'Only RSVP musicians may join' option after session starts" do
|
|
end
|
|
|
|
# musician_access = true, approval_required = false
|
|
it "should allow anyone to view for 'at will' option after session starts" do
|
|
end
|
|
|
|
# musician_access = true, approval_required = true
|
|
it "should allow anyone to view for 'join by approval' option after session starts" do
|
|
end
|
|
|
|
it "should render session info" do
|
|
# session creator
|
|
|
|
# date/time
|
|
|
|
# genre
|
|
|
|
# name
|
|
|
|
# description
|
|
|
|
# notation files
|
|
|
|
# language
|
|
|
|
# access
|
|
|
|
# legal info
|
|
|
|
# comments section
|
|
|
|
# sidebar - Approved RSVPs
|
|
|
|
# sidebar - Open Slots
|
|
|
|
# sidebar - Pending Invitations
|
|
end
|
|
|
|
it "should allow only RSVP approvals or session invitees to add comments" do
|
|
end
|
|
|
|
it "should show Submit RSVP button and launch submit dialog if user has not RSVPed" do
|
|
end
|
|
|
|
it "should show Cancel RSVP button and launch cancel dialog if user has RSVPed" do
|
|
end
|
|
|
|
it "should show no call to action button if user has not RSVPed and all slots are taken" do
|
|
end
|
|
|
|
end |