Conflicts:
	Gemfile
	Gemfile.lock
This commit is contained in:
Graham Kaplan
2014-04-05 19:27:05 -07:00
91 changed files with 1409 additions and 103 deletions
@@ -0,0 +1,49 @@
require 'test_helper'
class EventTypesControllerTest < ActionController::TestCase
setup do
@event_type = event_types(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:event_types)
end
test "should get new" do
get :new
assert_response :success
end
test "should create event_type" do
assert_difference('EventType.count') do
post :create, event_type: { info: @event_type.info, slug: @event_type.slug }
end
assert_redirected_to event_type_path(assigns(:event_type))
end
test "should show event_type" do
get :show, id: @event_type
assert_response :success
end
test "should get edit" do
get :edit, id: @event_type
assert_response :success
end
test "should update event_type" do
patch :update, id: @event_type, event_type: { info: @event_type.info, slug: @event_type.slug }
assert_redirected_to event_type_path(assigns(:event_type))
end
test "should destroy event_type" do
assert_difference('EventType.count', -1) do
delete :destroy, id: @event_type
end
assert_redirected_to event_types_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class EventsControllerTest < ActionController::TestCase
setup do
@event = events(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:events)
end
test "should get new" do
get :new
assert_response :success
end
test "should create event" do
assert_difference('Event.count') do
post :create, event: { conference: @event.conference, end_time: @event.end_time, event_type_id: @event.event_type_id, info: @event.info, location: @event.location, slug: @event.slug, start_time: @event.start_time, title: @event.title }
end
assert_redirected_to event_path(assigns(:event))
end
test "should show event" do
get :show, id: @event
assert_response :success
end
test "should get edit" do
get :edit, id: @event
assert_response :success
end
test "should update event" do
patch :update, id: @event, event: { conference: @event.conference, end_time: @event.end_time, event_type_id: @event.event_type_id, info: @event.info, location: @event.location, slug: @event.slug, start_time: @event.start_time, title: @event.title }
assert_redirected_to event_path(assigns(:event))
end
test "should destroy event" do
assert_difference('Event.count', -1) do
delete :destroy, id: @event
end
assert_redirected_to events_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class WorkshopFacilitatorsControllerTest < ActionController::TestCase
setup do
@workshop_facilitator = workshop_facilitators(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:workshop_facilitators)
end
test "should get new" do
get :new
assert_response :success
end
test "should create workshop_facilitator" do
assert_difference('WorkshopFacilitator.count') do
post :create, workshop_facilitator: { role: @workshop_facilitator.role, user_id: @workshop_facilitator.user_id, workshop_id: @workshop_facilitator.workshop_id }
end
assert_redirected_to workshop_facilitator_path(assigns(:workshop_facilitator))
end
test "should show workshop_facilitator" do
get :show, id: @workshop_facilitator
assert_response :success
end
test "should get edit" do
get :edit, id: @workshop_facilitator
assert_response :success
end
test "should update workshop_facilitator" do
patch :update, id: @workshop_facilitator, workshop_facilitator: { role: @workshop_facilitator.role, user_id: @workshop_facilitator.user_id, workshop_id: @workshop_facilitator.workshop_id }
assert_redirected_to workshop_facilitator_path(assigns(:workshop_facilitator))
end
test "should destroy workshop_facilitator" do
assert_difference('WorkshopFacilitator.count', -1) do
delete :destroy, id: @workshop_facilitator
end
assert_redirected_to workshop_facilitators_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class WorkshopRequestedResourcesControllerTest < ActionController::TestCase
setup do
@workshop_requested_resource = workshop_requested_resources(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:workshop_requested_resources)
end
test "should get new" do
get :new
assert_response :success
end
test "should create workshop_requested_resource" do
assert_difference('WorkshopRequestedResource.count') do
post :create, workshop_requested_resource: { status: @workshop_requested_resource.status, workshop_id: @workshop_requested_resource.workshop_id, workshop_resource_id: @workshop_requested_resource.workshop_resource_id }
end
assert_redirected_to workshop_requested_resource_path(assigns(:workshop_requested_resource))
end
test "should show workshop_requested_resource" do
get :show, id: @workshop_requested_resource
assert_response :success
end
test "should get edit" do
get :edit, id: @workshop_requested_resource
assert_response :success
end
test "should update workshop_requested_resource" do
patch :update, id: @workshop_requested_resource, workshop_requested_resource: { status: @workshop_requested_resource.status, workshop_id: @workshop_requested_resource.workshop_id, workshop_resource_id: @workshop_requested_resource.workshop_resource_id }
assert_redirected_to workshop_requested_resource_path(assigns(:workshop_requested_resource))
end
test "should destroy workshop_requested_resource" do
assert_difference('WorkshopRequestedResource.count', -1) do
delete :destroy, id: @workshop_requested_resource
end
assert_redirected_to workshop_requested_resources_path
end
end
@@ -0,0 +1,49 @@
require 'test_helper'
class WorkshopsControllerTest < ActionController::TestCase
setup do
@workshop = workshops(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:workshops)
end
test "should get new" do
get :new
assert_response :success
end
test "should create workshop" do
assert_difference('Workshop.count') do
post :create, workshop: { conference_id: @workshop.conference_id, end_time: @workshop.end_time, info: @workshop.info, location_id: @workshop.location_id, min_facilitators: @workshop.min_facilitators, slug: @workshop.slug, start_time: @workshop.start_time, title: @workshop.title, workshop_presentation_style: @workshop.workshop_presentation_style, workshop_stream_id: @workshop.workshop_stream_id }
end
assert_redirected_to workshop_path(assigns(:workshop))
end
test "should show workshop" do
get :show, id: @workshop
assert_response :success
end
test "should get edit" do
get :edit, id: @workshop
assert_response :success
end
test "should update workshop" do
patch :update, id: @workshop, workshop: { conference_id: @workshop.conference_id, end_time: @workshop.end_time, info: @workshop.info, location_id: @workshop.location_id, min_facilitators: @workshop.min_facilitators, slug: @workshop.slug, start_time: @workshop.start_time, title: @workshop.title, workshop_presentation_style: @workshop.workshop_presentation_style, workshop_stream_id: @workshop.workshop_stream_id }
assert_redirected_to workshop_path(assigns(:workshop))
end
test "should destroy workshop" do
assert_difference('Workshop.count', -1) do
delete :destroy, id: @workshop
end
assert_redirected_to workshops_path
end
end
+8
View File
@@ -0,0 +1,8 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :event_type do
slug "MyString"
info "MyText"
end
end
+14
View File
@@ -0,0 +1,14 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :event do
title "MyString"
slug "MyString"
event_type_id 1
conference ""
info "MyText"
location ""
start_time "2014-03-15 12:32:41"
end_time "2014-03-15 12:32:41"
end
end
+9
View File
@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :workshop_facilitator do
user_id 1
workshop_id 1
role "MyString"
end
end
@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :workshop_requested_resource do
workshop_id 1
workshop_resource_id 1
status "MyString"
end
end
+16
View File
@@ -0,0 +1,16 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :workshop do
title "MyString"
slug "MyString"
info "MyText"
conference_id 1
workshop_stream_id 1
workshop_presentation_style 1
min_facilitators 1
location_id 1
start_time "2014-03-13 20:56:47"
end_time "2014-03-13 20:56:47"
end
end
+4
View File
@@ -0,0 +1,4 @@
require 'test_helper'
class EventTypesHelperTest < ActionView::TestCase
end
+4
View File
@@ -0,0 +1,4 @@
require 'test_helper'
class EventsHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class WorkshopFacilitatorsHelperTest < ActionView::TestCase
end
@@ -0,0 +1,4 @@
require 'test_helper'
class WorkshopRequestedResourcesHelperTest < ActionView::TestCase
end
+4
View File
@@ -0,0 +1,4 @@
require 'test_helper'
class WorkshopsHelperTest < ActionView::TestCase
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class EventTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class EventTypeTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class WorkshopFacilitatorTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
@@ -0,0 +1,7 @@
require 'test_helper'
class WorkshopRequestedResourceTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class WorkshopTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end