Sha256: 93f19a9f9a5aa51132206f5cc1ac1969b0de21dc775b9ac79d534a17074bf8bb

Contents?: true

Size: 1.99 KB

Versions: 1

Compression:

Stored size: 1.99 KB

Contents

When /^registers a new room$/i do
  attrs = FactoryGirl.attributes_for(:bigbluebutton_room, :server => @server)
  fill_in("bigbluebutton_room[name]", :with => attrs[:name])
  fill_in("bigbluebutton_room[meetingid]", :with => attrs[:meetingid])
  check("bigbluebutton_room[private]") if attrs[:private]
  fill_in("bigbluebutton_room[attendee_key]", :with => attrs[:attendee_key])
  fill_in("bigbluebutton_room[moderator_key]", :with => attrs[:moderator_key])
  fill_in("bigbluebutton_room[welcome_msg]", :with => attrs[:welcome_msg])
  fill_in("bigbluebutton_room[logout_url]", :with => attrs[:logout_url])
  fill_in("bigbluebutton_room[dial_number]", :with => attrs[:dial_number])
  fill_in("bigbluebutton_room[max_participants]", :with => attrs[:max_participants])
  check("bigbluebutton_room[external]") if attrs[:external]
  fill_in("bigbluebutton_room[slug]", :with => attrs[:slug])
  # Note: voice_bridge is generated when the BigbluebuttonRoom is created
  click_button("Create")
end

When /^registers a new room with wrong parameters$/i do
  attrs = FactoryGirl.attributes_for(:bigbluebutton_room, :server => @server)
  fill_in("bigbluebutton_room[name]", :with => nil) # invalid
  fill_in("bigbluebutton_room[meetingid]", :with => attrs[:meetingid])
  check("bigbluebutton_room[private]") if attrs[:private]
  fill_in("bigbluebutton_room[attendee_key]", :with => attrs[:attendee_key])
  fill_in("bigbluebutton_room[moderator_key]", :with => attrs[:moderator_key])
  fill_in("bigbluebutton_room[welcome_msg]", :with => attrs[:welcome_msg])
  fill_in("bigbluebutton_room[logout_url]", :with => attrs[:logout_url])
  fill_in("bigbluebutton_room[dial_number]", :with => attrs[:dial_number])
  fill_in("bigbluebutton_room[max_participants]", :with => attrs[:max_participants])
  check("bigbluebutton_room[external]") if attrs[:external]
  fill_in("bigbluebutton_room[slug]", :with => attrs[:slug])
  click_button("Create")
end

When /(?:|I ) should see the information about this room/i do
  steps %Q{ When see the show room page }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bigbluebutton_rails-3.0.0 spec/rails_app/features/step_definitions/create_rooms_steps.rb