Make open source

This commit is contained in:
John Lees-Miller
2018-10-27 16:46:26 +01:00
commit 6e82ba528b
163 changed files with 3912 additions and 0 deletions

0
test/controllers/.keep Normal file
View File

View 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

View File

@ -0,0 +1,7 @@
require 'test_helper'
class PlusOnesControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end

View 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