Re-namespacing a bit to clear out some fairly old stuff from the top level
This commit is contained in:
18
oldstuff/RubyFun/cookbook/015/hodgepodge/test/fixtures/people.yml
vendored
Normal file
18
oldstuff/RubyFun/cookbook/015/hodgepodge/test/fixtures/people.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
|
||||
one:
|
||||
name: "John Doe"
|
||||
email: "john@doe.com"
|
||||
|
||||
two:
|
||||
name: "Jane Doe"
|
||||
email: "janeybear@yahoo.com"
|
||||
|
||||
three:
|
||||
name: "Manny Bananny"
|
||||
email: "hunka@burninluv.us"
|
||||
|
13
oldstuff/RubyFun/cookbook/015/hodgepodge/test/fixtures/users.yml
vendored
Normal file
13
oldstuff/RubyFun/cookbook/015/hodgepodge/test/fixtures/users.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
one:
|
||||
username: johndoe
|
||||
hashed_password: 019768a0e586a21e3250db985405554ccde798fc
|
||||
|
||||
two:
|
||||
username: janedoe
|
||||
hashed_password: 019768a0e586a21e3250db985405554ccde798fc
|
@@ -0,0 +1,9 @@
|
||||
require 'test_helper'
|
||||
|
||||
class FooControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
@@ -0,0 +1,9 @@
|
||||
require 'test_helper'
|
||||
|
||||
class IndexControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
@@ -0,0 +1,9 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ListControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
@@ -0,0 +1,9 @@
|
||||
require 'test_helper'
|
||||
|
||||
class PeopleControllerTest < ActionController::TestCase
|
||||
test "should get list" do
|
||||
get :list
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
@@ -0,0 +1,8 @@
|
||||
require 'test_helper'
|
||||
|
||||
class UserControllerTest < ActionController::TestCase
|
||||
test "oh lordy" do
|
||||
assert true
|
||||
end
|
||||
|
||||
end
|
@@ -0,0 +1,9 @@
|
||||
require 'test_helper'
|
||||
require 'rails/performance_test_help'
|
||||
|
||||
# Profiling results for each test method are written to tmp/performance.
|
||||
class BrowsingTest < ActionDispatch::PerformanceTest
|
||||
def test_homepage
|
||||
get '/'
|
||||
end
|
||||
end
|
13
oldstuff/RubyFun/cookbook/015/hodgepodge/test/test_helper.rb
Normal file
13
oldstuff/RubyFun/cookbook/015/hodgepodge/test/test_helper.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
ENV["RAILS_ENV"] = "test"
|
||||
require File.expand_path('../../config/environment', __FILE__)
|
||||
require 'rails/test_help'
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
||||
#
|
||||
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
||||
# -- they do not yet inherit this setting
|
||||
fixtures :all
|
||||
|
||||
# Add more helper methods to be used by all tests here...
|
||||
end
|
@@ -0,0 +1,4 @@
|
||||
require 'test_helper'
|
||||
|
||||
class FooHelperTest < ActionView::TestCase
|
||||
end
|
@@ -0,0 +1,4 @@
|
||||
require 'test_helper'
|
||||
|
||||
class IndexHelperTest < ActionView::TestCase
|
||||
end
|
@@ -0,0 +1,4 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ListHelperTest < ActionView::TestCase
|
||||
end
|
@@ -0,0 +1,4 @@
|
||||
require 'test_helper'
|
||||
|
||||
class PeopleHelperTest < ActionView::TestCase
|
||||
end
|
@@ -0,0 +1,4 @@
|
||||
require 'test_helper'
|
||||
|
||||
class UserHelperTest < ActionView::TestCase
|
||||
end
|
@@ -0,0 +1,8 @@
|
||||
require 'test_helper'
|
||||
|
||||
class PersonTest < ActiveSupport::TestCase
|
||||
# Replace this with your real tests.
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
end
|
@@ -0,0 +1,8 @@
|
||||
require 'test_helper'
|
||||
|
||||
class UserTest < ActiveSupport::TestCase
|
||||
# Replace this with your real tests.
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user