VRFS-1972 show correct information under Still Needed section for sessions with unstructured RSVPs
This commit is contained in:
parent
4ecf7abb1e
commit
051e7f8bde
|
|
@ -96,7 +96,10 @@
|
|||
%br/
|
||||
.left.w65.ib.still-needed
|
||||
%strong Still Needed
|
||||
- if @open_slots.blank?
|
||||
- if @music_session.is_unstructured_rsvp
|
||||
.clearall.left.w100.h20.ib.mb10
|
||||
Open to any instrument
|
||||
- elsif @open_slots.blank?
|
||||
.clearall.left.w100.h20.ib.mb10
|
||||
All slots are taken
|
||||
- else
|
||||
|
|
|
|||
|
|
@ -207,6 +207,10 @@ describe "Session Info", :js => true, :type => :feature, :capybara_feature => tr
|
|||
|
||||
# musician_access = true, approval_required = false
|
||||
it "should allow anyone to view for 'at will' option after session starts" do
|
||||
@music_session.musician_access = true
|
||||
@music_session.approval_required = false
|
||||
@music_session.save!
|
||||
|
||||
# attempt to access with musician who was invited but didn't RSVP
|
||||
fast_signin(@session_invitee, @url)
|
||||
ensure_success({:show_cta => true, :button_text => 'RSVP NOW!'})
|
||||
|
|
@ -235,6 +239,10 @@ describe "Session Info", :js => true, :type => :feature, :capybara_feature => tr
|
|||
|
||||
# musician_access = true, approval_required = true
|
||||
it "should allow anyone to view for 'join by approval' option after session starts" do
|
||||
@music_session.musician_access = true
|
||||
@music_session.approval_required = true
|
||||
@music_session.save!
|
||||
|
||||
# attempt to access with musician who was invited but didn't RSVP
|
||||
fast_signin(@session_invitee, @url)
|
||||
ensure_success({:show_cta => true, :button_text => 'RSVP NOW!'})
|
||||
|
|
|
|||
Loading…
Reference in New Issue