basic tests and user data

This commit is contained in:
Zachary Chai 2016-10-18 15:41:08 -04:00
parent 4534cf28ea
commit 407e7f23ec
3 changed files with 25 additions and 19 deletions

View File

@ -1,14 +1,13 @@
require 'test_helper'
class BbbControllerTest < ActionDispatch::IntegrationTest
test "should get join" do
get bbb_join_url
assert_response :success
end
test "should get end" do
get bbb_end_url
assert_response :success
end
class BbbControllerTest < ActionController::TestCase
# test "should get join" do
# get :join
# assert_response :success
# end
#
# test "should get end" do
# get :close
# assert_response :success
# end
end

View File

@ -1,8 +1,13 @@
require 'test_helper'
class LandingControllerTest < ActionDispatch::IntegrationTest
class LandingControllerTest < ActionController::TestCase
test "should get index" do
get landing_index_url
get :index
assert_response :success
end
test "should get room" do
get :room, params: { name: 'user1' }
assert_response :success
end

View File

@ -1,11 +1,13 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
provider: MyString
uid: MyString
name: MyString
provider: Twitter
uid: <%= SecureRandom.hex(10) %>
name: User 1
username: user1
two:
provider: MyString
uid: MyString
name: MyString
provider: TWitter
uid: <%= SecureRandom.hex(10) %>
name: User 2
username: user2