Make open source
This commit is contained in:
0
test/controllers/.keep
Normal file
0
test/controllers/.keep
Normal file
23
test/controllers/guests_controller_test.rb
Normal file
23
test/controllers/guests_controller_test.rb
Normal file
@ -0,0 +1,23 @@
|
||||
require 'test_helper'
|
||||
|
||||
class GuestsControllerTest < ActionDispatch::IntegrationTest
|
||||
test 'checks for duplicates on email update' do
|
||||
guest_one = guests(:one)
|
||||
guest_two = guests(:two)
|
||||
|
||||
patch guest_path(guest_one), params: {
|
||||
guest: { email: guest_two.email }
|
||||
}
|
||||
|
||||
assert_select 'li', 'Email has already been taken'
|
||||
end
|
||||
|
||||
test 'records confirmed_at time' do
|
||||
guest_one = guests(:one)
|
||||
|
||||
patch complete_guest_path(guest_one), params: { guest: { notes: '' } }
|
||||
|
||||
guest_one.reload
|
||||
assert guest_one.confirmed_at
|
||||
end
|
||||
end
|
7
test/controllers/plus_ones_controller_test.rb
Normal file
7
test/controllers/plus_ones_controller_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class PlusOnesControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
8
test/controllers/welcome_controller_test.rb
Normal file
8
test/controllers/welcome_controller_test.rb
Normal file
@ -0,0 +1,8 @@
|
||||
require 'test_helper'
|
||||
|
||||
class WelcomeControllerTest < ActionDispatch::IntegrationTest
|
||||
test 'should get index' do
|
||||
get welcome_index_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user