* fix global chat
This commit is contained in:
parent
f8c62631f6
commit
2835941834
|
|
@ -96,6 +96,7 @@ module JamRuby
|
|||
|
||||
def send_chat_msg(music_session, chat_msg, user, client_id, channel, lesson_session, purpose, target_user)
|
||||
music_session_id = music_session.id if music_session
|
||||
lesson_session_id = lesson_session.id if lesson_session
|
||||
|
||||
msg = @@message_factory.chat_message(
|
||||
music_session_id,
|
||||
|
|
@ -105,7 +106,7 @@ module JamRuby
|
|||
chat_msg.id,
|
||||
chat_msg.created_at.utc.iso8601,
|
||||
channel,
|
||||
lesson_session.id,
|
||||
lesson_session_id,
|
||||
purpose
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ describe "Test Drive", :js => true, :type => :feature, :capybara_feature => true
|
|||
|
||||
find('a.book-lesson-btn', text: 'BOOK TESTDRIVE LESSON').trigger(:click)
|
||||
|
||||
find('h2', text: 'your lesson has been requested')
|
||||
find('h2', text: 'my lessons')
|
||||
|
||||
user.reload
|
||||
user.student_lesson_bookings.count.should eql 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue