[Internal] Add route for widget testing (#199)
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe RoomChannel, type: :channel do
|
||||
let!(:user) { create(:user) }
|
||||
|
||||
before do
|
||||
stub_connection
|
||||
end
|
||||
|
||||
it 'subscribes to a stream when pubsub_token is provided' do
|
||||
subscribe(pubsub_token: user.uid)
|
||||
expect(subscription).to be_confirmed
|
||||
expect(subscription).to have_stream_for(user.uid)
|
||||
end
|
||||
end
|
||||
12
spec/controllers/widget_tests_controller_spec.rb
Normal file
12
spec/controllers/widget_tests_controller_spec.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
require 'rails_helper'
|
||||
|
||||
describe WidgetTestsController, type: :controller do
|
||||
let(:channel_widget) { create(:channel_widget) }
|
||||
|
||||
describe '#index' do
|
||||
it 'renders the page correctly' do
|
||||
get :index
|
||||
expect(response.status).to eq 200
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user