The working basics

This commit is contained in:
Godwin
2014-03-09 14:43:33 -06:00
parent b490a97852
commit db60933506
628 changed files with 81918 additions and 1060 deletions
@@ -0,0 +1,49 @@
require 'test_helper'
class ConferenceAdminsControllerTest < ActionController::TestCase
setup do
@conference_admin = conference_admins(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:conference_admins)
end
test "should get new" do
get :new
assert_response :success
end
test "should create conference_admin" do
assert_difference('ConferenceAdmin.count') do
post :create, conference_admin: { conference_id: @conference_admin.conference_id, user_id: @conference_admin.user_id }
end
assert_redirected_to conference_admin_path(assigns(:conference_admin))
end
test "should show conference_admin" do
get :show, id: @conference_admin
assert_response :success
end
test "should get edit" do
get :edit, id: @conference_admin
assert_response :success
end
test "should update conference_admin" do
patch :update, id: @conference_admin, conference_admin: { conference_id: @conference_admin.conference_id, user_id: @conference_admin.user_id }
assert_redirected_to conference_admin_path(assigns(:conference_admin))
end
test "should destroy conference_admin" do
assert_difference('ConferenceAdmin.count', -1) do
delete :destroy, id: @conference_admin
end
assert_redirected_to conference_admins_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class ConferenceHostOrganizationsControllerTest < ActionController::TestCase
setup do
@conference_host_organization = conference_host_organizations(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:conference_host_organizations)
end
test "should get new" do
get :new
assert_response :success
end
test "should create conference_host_organization" do
assert_difference('ConferenceHostOrganization.count') do
post :create, conference_host_organization: { conference_id: @conference_host_organization.conference_id, order: @conference_host_organization.order, organization_id: @conference_host_organization.organization_id }
end
assert_redirected_to conference_host_organization_path(assigns(:conference_host_organization))
end
test "should show conference_host_organization" do
get :show, id: @conference_host_organization
assert_response :success
end
test "should get edit" do
get :edit, id: @conference_host_organization
assert_response :success
end
test "should update conference_host_organization" do
patch :update, id: @conference_host_organization, conference_host_organization: { conference_id: @conference_host_organization.conference_id, order: @conference_host_organization.order, organization_id: @conference_host_organization.organization_id }
assert_redirected_to conference_host_organization_path(assigns(:conference_host_organization))
end
test "should destroy conference_host_organization" do
assert_difference('ConferenceHostOrganization.count', -1) do
delete :destroy, id: @conference_host_organization
end
assert_redirected_to conference_host_organizations_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class ConferenceRegistrationResponsesControllerTest < ActionController::TestCase
setup do
@conference_registration_response = conference_registration_responses(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:conference_registration_responses)
end
test "should get new" do
get :new
assert_response :success
end
test "should create conference_registration_response" do
assert_difference('ConferenceRegistrationResponse.count') do
post :create, conference_registration_response: { conference_registration_id: @conference_registration_response.conference_registration_id, data: @conference_registration_response.data, registration_form_field_id: @conference_registration_response.registration_form_field_id }
end
assert_redirected_to conference_registration_response_path(assigns(:conference_registration_response))
end
test "should show conference_registration_response" do
get :show, id: @conference_registration_response
assert_response :success
end
test "should get edit" do
get :edit, id: @conference_registration_response
assert_response :success
end
test "should update conference_registration_response" do
patch :update, id: @conference_registration_response, conference_registration_response: { conference_registration_id: @conference_registration_response.conference_registration_id, data: @conference_registration_response.data, registration_form_field_id: @conference_registration_response.registration_form_field_id }
assert_redirected_to conference_registration_response_path(assigns(:conference_registration_response))
end
test "should destroy conference_registration_response" do
assert_difference('ConferenceRegistrationResponse.count', -1) do
delete :destroy, id: @conference_registration_response
end
assert_redirected_to conference_registration_responses_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class ConferenceRegistrationsControllerTest < ActionController::TestCase
setup do
@conference_registration = conference_registrations(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:conference_registrations)
end
test "should get new" do
get :new
assert_response :success
end
test "should create conference_registration" do
assert_difference('ConferenceRegistration.count') do
post :create, conference_registration: { conference_id: @conference_registration.conference_id, is_attending: @conference_registration.is_attending, user_id: @conference_registration.user_id }
end
assert_redirected_to conference_registration_path(assigns(:conference_registration))
end
test "should show conference_registration" do
get :show, id: @conference_registration
assert_response :success
end
test "should get edit" do
get :edit, id: @conference_registration
assert_response :success
end
test "should update conference_registration" do
patch :update, id: @conference_registration, conference_registration: { conference_id: @conference_registration.conference_id, is_attending: @conference_registration.is_attending, user_id: @conference_registration.user_id }
assert_redirected_to conference_registration_path(assigns(:conference_registration))
end
test "should destroy conference_registration" do
assert_difference('ConferenceRegistration.count', -1) do
delete :destroy, id: @conference_registration
end
assert_redirected_to conference_registrations_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class ConferenceRegistratonFormFieldsControllerTest < ActionController::TestCase
setup do
@conference_registraton_form_field = conference_registraton_form_fields(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:conference_registraton_form_fields)
end
test "should get new" do
get :new
assert_response :success
end
test "should create conference_registraton_form_field" do
assert_difference('ConferenceRegistratonFormField.count') do
post :create, conference_registraton_form_field: { conference_id: @conference_registraton_form_field.conference_id, order: @conference_registraton_form_field.order, registration_form_field_id: @conference_registraton_form_field.registration_form_field_id }
end
assert_redirected_to conference_registraton_form_field_path(assigns(:conference_registraton_form_field))
end
test "should show conference_registraton_form_field" do
get :show, id: @conference_registraton_form_field
assert_response :success
end
test "should get edit" do
get :edit, id: @conference_registraton_form_field
assert_response :success
end
test "should update conference_registraton_form_field" do
patch :update, id: @conference_registraton_form_field, conference_registraton_form_field: { conference_id: @conference_registraton_form_field.conference_id, order: @conference_registraton_form_field.order, registration_form_field_id: @conference_registraton_form_field.registration_form_field_id }
assert_redirected_to conference_registraton_form_field_path(assigns(:conference_registraton_form_field))
end
test "should destroy conference_registraton_form_field" do
assert_difference('ConferenceRegistratonFormField.count', -1) do
delete :destroy, id: @conference_registraton_form_field
end
assert_redirected_to conference_registraton_form_fields_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class ConferenceTypesControllerTest < ActionController::TestCase
setup do
@conference_type = conference_types(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:conference_types)
end
test "should get new" do
get :new
assert_response :success
end
test "should create conference_type" do
assert_difference('ConferenceType.count') do
post :create, conference_type: { info: @conference_type.info, title: @conference_type.title }
end
assert_redirected_to conference_type_path(assigns(:conference_type))
end
test "should show conference_type" do
get :show, id: @conference_type
assert_response :success
end
test "should get edit" do
get :edit, id: @conference_type
assert_response :success
end
test "should update conference_type" do
patch :update, id: @conference_type, conference_type: { info: @conference_type.info, title: @conference_type.title }
assert_redirected_to conference_type_path(assigns(:conference_type))
end
test "should destroy conference_type" do
assert_difference('ConferenceType.count', -1) do
delete :destroy, id: @conference_type
end
assert_redirected_to conference_types_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class ConferencesControllerTest < ActionController::TestCase
setup do
@conference = conferences(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:conferences)
end
test "should get new" do
get :new
assert_response :success
end
test "should create conference" do
assert_difference('Conference.count') do
post :create, conference: { banner: @conference.banner, conference_type: @conference.conference_type, end_date: @conference.end_date, info: @conference.info, meal_info: @conference.meal_info, meals_provided: @conference.meals_provided, poster: @conference.poster, registration_open: @conference.registration_open, slug: @conference.slug, start_date: @conference.start_date, title: @conference.title, travel_info: @conference.travel_info, workshop_schedule_published: @conference.workshop_schedule_published }
end
assert_redirected_to conference_path(assigns(:conference))
end
test "should show conference" do
get :show, id: @conference
assert_response :success
end
test "should get edit" do
get :edit, id: @conference
assert_response :success
end
test "should update conference" do
patch :update, id: @conference, conference: { banner: @conference.banner, conference_type: @conference.conference_type, end_date: @conference.end_date, info: @conference.info, meal_info: @conference.meal_info, meals_provided: @conference.meals_provided, poster: @conference.poster, registration_open: @conference.registration_open, slug: @conference.slug, start_date: @conference.start_date, title: @conference.title, travel_info: @conference.travel_info, workshop_schedule_published: @conference.workshop_schedule_published }
assert_redirected_to conference_path(assigns(:conference))
end
test "should destroy conference" do
assert_difference('Conference.count', -1) do
delete :destroy, id: @conference
end
assert_redirected_to conferences_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class LocationsControllerTest < ActionController::TestCase
setup do
@location = locations(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:locations)
end
test "should get new" do
get :new
assert_response :success
end
test "should create location" do
assert_difference('Location.count') do
post :create, location: { address: @location.address, latitude: @location.latitude, longitude: @location.longitude, title: @location.title }
end
assert_redirected_to location_path(assigns(:location))
end
test "should show location" do
get :show, id: @location
assert_response :success
end
test "should get edit" do
get :edit, id: @location
assert_response :success
end
test "should update location" do
patch :update, id: @location, location: { address: @location.address, latitude: @location.latitude, longitude: @location.longitude, title: @location.title }
assert_redirected_to location_path(assigns(:location))
end
test "should destroy location" do
assert_difference('Location.count', -1) do
delete :destroy, id: @location
end
assert_redirected_to locations_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class OrganizationStatusesControllerTest < ActionController::TestCase
setup do
@organization_status = organization_statuses(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:organization_statuses)
end
test "should get new" do
get :new
assert_response :success
end
test "should create organization_status" do
assert_difference('OrganizationStatus.count') do
post :create, organization_status: { info: @organization_status.info, name: @organization_status.name, slug: @organization_status.slug }
end
assert_redirected_to organization_status_path(assigns(:organization_status))
end
test "should show organization_status" do
get :show, id: @organization_status
assert_response :success
end
test "should get edit" do
get :edit, id: @organization_status
assert_response :success
end
test "should update organization_status" do
patch :update, id: @organization_status, organization_status: { info: @organization_status.info, name: @organization_status.name, slug: @organization_status.slug }
assert_redirected_to organization_status_path(assigns(:organization_status))
end
test "should destroy organization_status" do
assert_difference('OrganizationStatus.count', -1) do
delete :destroy, id: @organization_status
end
assert_redirected_to organization_statuses_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class OrganizationsControllerTest < ActionController::TestCase
setup do
@organization = organizations(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:organizations)
end
test "should get new" do
get :new
assert_response :success
end
test "should create organization" do
assert_difference('Organization.count') do
post :create, organization: { avatar: @organization.avatar, email_address: @organization.email_address, info: @organization.info, location_id: @organization.location_id, logo: @organization.logo, name: @organization.name, requires_approval: @organization.requires_approval, secret_answer: @organization.secret_answer, secret_question: @organization.secret_question, slug: @organization.slug, url: @organization.url, user_organization_replationship_id: @organization.user_organization_replationship_id, year_founded: @organization.year_founded }
end
assert_redirected_to organization_path(assigns(:organization))
end
test "should show organization" do
get :show, id: @organization
assert_response :success
end
test "should get edit" do
get :edit, id: @organization
assert_response :success
end
test "should update organization" do
patch :update, id: @organization, organization: { avatar: @organization.avatar, email_address: @organization.email_address, info: @organization.info, location_id: @organization.location_id, logo: @organization.logo, name: @organization.name, requires_approval: @organization.requires_approval, secret_answer: @organization.secret_answer, secret_question: @organization.secret_question, slug: @organization.slug, url: @organization.url, user_organization_replationship_id: @organization.user_organization_replationship_id, year_founded: @organization.year_founded }
assert_redirected_to organization_path(assigns(:organization))
end
test "should destroy organization" do
assert_difference('Organization.count', -1) do
delete :destroy, id: @organization
end
assert_redirected_to organizations_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class RegistrationFormFieldsControllerTest < ActionController::TestCase
setup do
@registration_form_field = registration_form_fields(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:registration_form_fields)
end
test "should get new" do
get :new
assert_response :success
end
test "should create registration_form_field" do
assert_difference('RegistrationFormField.count') do
post :create, registration_form_field: { field_type: @registration_form_field.field_type, help: @registration_form_field.help, is_retired: @registration_form_field.is_retired, options: @registration_form_field.options, required: @registration_form_field.required, title: @registration_form_field.title }
end
assert_redirected_to registration_form_field_path(assigns(:registration_form_field))
end
test "should show registration_form_field" do
get :show, id: @registration_form_field
assert_response :success
end
test "should get edit" do
get :edit, id: @registration_form_field
assert_response :success
end
test "should update registration_form_field" do
patch :update, id: @registration_form_field, registration_form_field: { field_type: @registration_form_field.field_type, help: @registration_form_field.help, is_retired: @registration_form_field.is_retired, options: @registration_form_field.options, required: @registration_form_field.required, title: @registration_form_field.title }
assert_redirected_to registration_form_field_path(assigns(:registration_form_field))
end
test "should destroy registration_form_field" do
assert_difference('RegistrationFormField.count', -1) do
delete :destroy, id: @registration_form_field
end
assert_redirected_to registration_form_fields_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class UserOrganizationRelationshipsControllerTest < ActionController::TestCase
setup do
@user_organization_relationship = user_organization_relationships(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:user_organization_relationships)
end
test "should get new" do
get :new
assert_response :success
end
test "should create user_organization_relationship" do
assert_difference('UserOrganizationRelationship.count') do
post :create, user_organization_relationship: { organization_id: @user_organization_relationship.organization_id, relationship: @user_organization_relationship.relationship, user_id: @user_organization_relationship.user_id }
end
assert_redirected_to user_organization_relationship_path(assigns(:user_organization_relationship))
end
test "should show user_organization_relationship" do
get :show, id: @user_organization_relationship
assert_response :success
end
test "should get edit" do
get :edit, id: @user_organization_relationship
assert_response :success
end
test "should update user_organization_relationship" do
patch :update, id: @user_organization_relationship, user_organization_relationship: { organization_id: @user_organization_relationship.organization_id, relationship: @user_organization_relationship.relationship, user_id: @user_organization_relationship.user_id }
assert_redirected_to user_organization_relationship_path(assigns(:user_organization_relationship))
end
test "should destroy user_organization_relationship" do
assert_difference('UserOrganizationRelationship.count', -1) do
delete :destroy, id: @user_organization_relationship
end
assert_redirected_to user_organization_relationships_path
end
end
@@ -0,0 +1,19 @@
require 'test_helper'
class UserSessionsControllerTest < ActionController::TestCase
test "should get new" do
get :new
assert_response :success
end
test "should get create" do
get :create
assert_response :success
end
test "should get destroy" do
get :destroy
assert_response :success
end
end
+49
View File
@@ -0,0 +1,49 @@
require 'test_helper'
class UsersControllerTest < ActionController::TestCase
setup do
@user = users(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:users)
end
test "should get new" do
get :new
assert_response :success
end
test "should create user" do
assert_difference('User.count') do
post :create, user: { crypted_password: @user.crypted_password, email: @user.email, salt: @user.salt }
end
assert_redirected_to user_path(assigns(:user))
end
test "should show user" do
get :show, id: @user
assert_response :success
end
test "should get edit" do
get :edit, id: @user
assert_response :success
end
test "should update user" do
patch :update, id: @user, user: { crypted_password: @user.crypted_password, email: @user.email, salt: @user.salt }
assert_redirected_to user_path(assigns(:user))
end
test "should destroy user" do
assert_difference('User.count', -1) do
delete :destroy, id: @user
end
assert_redirected_to users_path
end
end
@@ -0,0 +1,7 @@
require 'test_helper'
class VersionsControllerTest < ActionController::TestCase
# test "the truth" do
# assert true
# end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class WorkshopPresentationStylesControllerTest < ActionController::TestCase
setup do
@workshop_presentation_style = workshop_presentation_styles(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:workshop_presentation_styles)
end
test "should get new" do
get :new
assert_response :success
end
test "should create workshop_presentation_style" do
assert_difference('WorkshopPresentationStyle.count') do
post :create, workshop_presentation_style: { info: @workshop_presentation_style.info, name: @workshop_presentation_style.name, slug: @workshop_presentation_style.slug }
end
assert_redirected_to workshop_presentation_style_path(assigns(:workshop_presentation_style))
end
test "should show workshop_presentation_style" do
get :show, id: @workshop_presentation_style
assert_response :success
end
test "should get edit" do
get :edit, id: @workshop_presentation_style
assert_response :success
end
test "should update workshop_presentation_style" do
patch :update, id: @workshop_presentation_style, workshop_presentation_style: { info: @workshop_presentation_style.info, name: @workshop_presentation_style.name, slug: @workshop_presentation_style.slug }
assert_redirected_to workshop_presentation_style_path(assigns(:workshop_presentation_style))
end
test "should destroy workshop_presentation_style" do
assert_difference('WorkshopPresentationStyle.count', -1) do
delete :destroy, id: @workshop_presentation_style
end
assert_redirected_to workshop_presentation_styles_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class WorkshopResourcesControllerTest < ActionController::TestCase
setup do
@workshop_resource = workshop_resources(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:workshop_resources)
end
test "should get new" do
get :new
assert_response :success
end
test "should create workshop_resource" do
assert_difference('WorkshopResource.count') do
post :create, workshop_resource: { info: @workshop_resource.info, name: @workshop_resource.name, slug: @workshop_resource.slug }
end
assert_redirected_to workshop_resource_path(assigns(:workshop_resource))
end
test "should show workshop_resource" do
get :show, id: @workshop_resource
assert_response :success
end
test "should get edit" do
get :edit, id: @workshop_resource
assert_response :success
end
test "should update workshop_resource" do
patch :update, id: @workshop_resource, workshop_resource: { info: @workshop_resource.info, name: @workshop_resource.name, slug: @workshop_resource.slug }
assert_redirected_to workshop_resource_path(assigns(:workshop_resource))
end
test "should destroy workshop_resource" do
assert_difference('WorkshopResource.count', -1) do
delete :destroy, id: @workshop_resource
end
assert_redirected_to workshop_resources_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class WorkshopStreamsControllerTest < ActionController::TestCase
setup do
@workshop_stream = workshop_streams(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:workshop_streams)
end
test "should get new" do
get :new
assert_response :success
end
test "should create workshop_stream" do
assert_difference('WorkshopStream.count') do
post :create, workshop_stream: { info: @workshop_stream.info, name: @workshop_stream.name, slug: @workshop_stream.slug }
end
assert_redirected_to workshop_stream_path(assigns(:workshop_stream))
end
test "should show workshop_stream" do
get :show, id: @workshop_stream
assert_response :success
end
test "should get edit" do
get :edit, id: @workshop_stream
assert_response :success
end
test "should update workshop_stream" do
patch :update, id: @workshop_stream, workshop_stream: { info: @workshop_stream.info, name: @workshop_stream.name, slug: @workshop_stream.slug }
assert_redirected_to workshop_stream_path(assigns(:workshop_stream))
end
test "should destroy workshop_stream" do
assert_difference('WorkshopStream.count', -1) do
delete :destroy, id: @workshop_stream
end
assert_redirected_to workshop_streams_path
end
end
+8
View File
@@ -0,0 +1,8 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :conference_admin do
conference_id 1
user_id 1
end
end
@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :conference_host_organization do
conference_id 1
organization_id 1
order 1
end
end
@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :conference_registration_response do
conference_registration_id 1
registration_form_field_id 1
data "MyText"
end
end
@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :conference_registration do
conference_id 1
user_id 1
is_attending "MyString"
end
end
@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :conference_registraton_form_field do
conference_id 1
registration_form_field_id 1
order 1
end
end
+8
View File
@@ -0,0 +1,8 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :conference_type do
title "MyString"
info "MyString"
end
end
+19
View File
@@ -0,0 +1,19 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :conference do
title "MyString"
slug "MyString"
start_date "2014-03-01 13:21:57"
end_date "2014-03-01 13:21:57"
info "MyText"
poster "MyString"
banner "MyString"
workshop_schedule_published false
registration_open false
meals_provided false
meal_info "MyText"
travel_info "MyText"
conference_type ""
end
end
+10
View File
@@ -0,0 +1,10 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :location do
title "MyString"
address "MyString"
latitude 1.5
longitude 1.5
end
end
@@ -0,0 +1,6 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :locations_organization, :class => 'LocationsOrganizations' do
end
end
+9
View File
@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :organization_status do
name "MyString"
slug "MyString"
info "MyString"
end
end
+19
View File
@@ -0,0 +1,19 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :organization do
name "MyString"
slug "MyString"
email_address "MyString"
url "MyString"
year_founded 1
info "MyText"
logo "MyString"
avatar "MyString"
requires_approval false
secret_question "MyString"
secret_answer "MyString"
location_id 1
user_organization_replationship_id 1
end
end
@@ -0,0 +1,12 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :registration_form_field do
title "MyString"
help "MyText"
required false
field_type "MyString"
options "MyString"
is_retired false
end
end
+6
View File
@@ -0,0 +1,6 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :translation do
end
end
@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :user_organization_relationship do
user_id 1
organization_id 1
relationship "MyString"
end
end
+6
View File
@@ -0,0 +1,6 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :user do
end
end
+12
View File
@@ -0,0 +1,12 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :version do
item_type "MyString"
item_id 1
event "MyString"
whodunnit "MyString"
object "MyText"
created_at "2014-02-11 19:21:15"
end
end
@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :workshop_presentation_style do
name "MyString"
slug "MyString"
info "MyString"
end
end
+9
View File
@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :workshop_resource do
name "MyString"
slug "MyString"
info "MyString"
end
end
+9
View File
@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :workshop_stream do
name "MyString"
slug "MyString"
info "MyString"
end
end
@@ -0,0 +1,4 @@
require 'test_helper'
class ConferenceAdminsHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class ConferenceHostOrganizationsHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class ConferenceRegistrationResponsesHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class ConferenceRegistrationsHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class ConferenceRegistratonFormFieldsHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class ConferenceTypesHelperTest < ActionView::TestCase
end
+4
View File
@@ -0,0 +1,4 @@
require 'test_helper'
class ConferencesHelperTest < ActionView::TestCase
end
+4
View File
@@ -0,0 +1,4 @@
require 'test_helper'
class LocationsHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class OrganizationStatusesHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class OrganizationsHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class RegistrationFormFieldsHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class UserOrganizationRelationshipsHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class UserSessionsHelperTest < ActionView::TestCase
end
+4
View File
@@ -0,0 +1,4 @@
require 'test_helper'
class UsersHelperTest < ActionView::TestCase
end
+4
View File
@@ -0,0 +1,4 @@
require 'test_helper'
class VersionsHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class WorkshopPresentationStylesHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class WorkshopResourcesHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class WorkshopStreamsHelperTest < ActionView::TestCase
end
+20
View File
@@ -0,0 +1,20 @@
require 'test_helper'
class UserMailerTest < ActionMailer::TestCase
test "activation_needed_email" do
mail = UserMailer.activation_needed_email
assert_equal "Activation needed email", mail.subject
assert_equal ["to@example.org"], mail.to
assert_equal ["from@example.com"], mail.from
assert_match "Hi", mail.body.encoded
end
test "activation_success_email" do
mail = UserMailer.activation_success_email
assert_equal "Activation success email", mail.subject
assert_equal ["to@example.org"], mail.to
assert_equal ["from@example.com"], mail.from
assert_match "Hi", mail.body.encoded
end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class ConferenceAdminTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
@@ -0,0 +1,7 @@
require 'test_helper'
class ConferenceHostOrganizationTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
@@ -0,0 +1,7 @@
require 'test_helper'
class ConferenceRegistrationResponseTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
@@ -0,0 +1,7 @@
require 'test_helper'
class ConferenceRegistrationTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
@@ -0,0 +1,7 @@
require 'test_helper'
class ConferenceRegistratonFormFieldTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class ConferenceTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class ConferenceTypeTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class LocationTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
@@ -0,0 +1,7 @@
require 'test_helper'
class LocationsOrganizationsTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class OrganizationStatusTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class OrganizationTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
@@ -0,0 +1,7 @@
require 'test_helper'
class RegistrationFormFieldTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class TranslationTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
@@ -0,0 +1,7 @@
require 'test_helper'
class UserOrganizationRelationshipTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class UserTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class VersionTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
@@ -0,0 +1,7 @@
require 'test_helper'
class WorkshopPresentationStyleTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class WorkshopResourceTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class WorkshopStreamTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end