forked from External/greenlight
Rspec and rubocop fixes
This commit is contained in:
@ -84,7 +84,7 @@ describe RoomsController, type: :controller do
|
||||
end
|
||||
|
||||
it "sets the join name to cookie[:greenlight_name] if it exists" do
|
||||
name = Faker::Pokemon.name
|
||||
name = Faker::Games::Pokemon.name
|
||||
@request.cookies[:greenlight_name] = name
|
||||
|
||||
get :show, params: { room_uid: @owner.main_room }
|
||||
@ -115,7 +115,7 @@ describe RoomsController, type: :controller do
|
||||
|
||||
it "should create room with name and correct settings" do
|
||||
@request.session[:user_id] = @owner.id
|
||||
name = Faker::Pokemon.name
|
||||
name = Faker::Games::Pokemon.name
|
||||
|
||||
room_params = { name: name, "client": "html5", "mute_on_join": "1" }
|
||||
json_room_settings = "{\"muteOnStart\":true,\"joinViaHtml5\":true}"
|
||||
@ -131,7 +131,7 @@ describe RoomsController, type: :controller do
|
||||
|
||||
it "it should redirect to root if not logged in" do
|
||||
expect do
|
||||
name = Faker::Pokemon.name
|
||||
name = Faker::Games::Pokemon.name
|
||||
post :create, params: { room: { name: name } }
|
||||
end.to change { Room.count }.by(0)
|
||||
|
||||
@ -288,7 +288,7 @@ describe RoomsController, type: :controller do
|
||||
|
||||
it "properly updates room name through the room settings modal and redirects to current page" do
|
||||
@request.session[:user_id] = @user.id
|
||||
name = Faker::Pokemon.name
|
||||
name = Faker::Games::Pokemon.name
|
||||
|
||||
room_params = { room_uid: @secondary_room.uid, room: { "name": name } }
|
||||
|
||||
|
Reference in New Issue
Block a user