Commit 1d8b30b2
Changed files (14)
test
fixtures
functional
performance
unit
test/fixtures/authentications.yml
@@ -1,11 +0,0 @@
-# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
-
-one:
- user_id: 1
- provider: MyString
- uid: MyString
-
-two:
- user_id: 1
- provider: MyString
- uid: MyString
test/fixtures/users.yml
@@ -1,11 +0,0 @@
-# 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: {}
-# column: value
-#
-two: {}
-# column: value
test/functional/authentications_controller_test.rb
@@ -1,49 +0,0 @@
-require 'test_helper'
-
-class AuthenticationsControllerTest < ActionController::TestCase
- setup do
- @authentication = authentications(:one)
- end
-
- test "should get index" do
- get :index
- assert_response :success
- assert_not_nil assigns(:authentications)
- end
-
- test "should get new" do
- get :new
- assert_response :success
- end
-
- test "should create authentication" do
- assert_difference('Authentication.count') do
- post :create, :authentication => @authentication.attributes
- end
-
- assert_redirected_to authentication_path(assigns(:authentication))
- end
-
- test "should show authentication" do
- get :show, :id => @authentication.to_param
- assert_response :success
- end
-
- test "should get edit" do
- get :edit, :id => @authentication.to_param
- assert_response :success
- end
-
- test "should update authentication" do
- put :update, :id => @authentication.to_param, :authentication => @authentication.attributes
- assert_redirected_to authentication_path(assigns(:authentication))
- end
-
- test "should destroy authentication" do
- assert_difference('Authentication.count', -1) do
- delete :destroy, :id => @authentication.to_param
- end
-
- assert_redirected_to authentications_path
- end
-end
test/functional/dashboard_controller_test.rb
@@ -1,9 +0,0 @@
-require 'test_helper'
-
-class DashboardControllerTest < ActionController::TestCase
- test "should get index" do
- get :index
- assert_response :success
- end
-
-end
test/functional/home_controller_test.rb
@@ -1,9 +0,0 @@
-require 'test_helper'
-
-class HomeControllerTest < ActionController::TestCase
- test "should get index" do
- get :index
- assert_response :success
- end
-
-end
test/functional/registrations_controller_test.rb
@@ -1,8 +0,0 @@
-require 'test_helper'
-
-class RegistrationsControllerTest < ActionController::TestCase
- # Replace this with your real tests.
- test "the truth" do
- assert true
- end
-end
test/performance/browsing_test.rb
@@ -1,9 +0,0 @@
-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
test/unit/helpers/authentications_helper_test.rb
@@ -1,4 +0,0 @@
-require 'test_helper'
-
-class AuthenticationsHelperTest < ActionView::TestCase
-end
test/unit/helpers/dashboard_helper_test.rb
@@ -1,4 +0,0 @@
-require 'test_helper'
-
-class DashboardHelperTest < ActionView::TestCase
-end
test/unit/helpers/home_helper_test.rb
@@ -1,4 +0,0 @@
-require 'test_helper'
-
-class HomeHelperTest < ActionView::TestCase
-end
test/unit/helpers/registrations_helper_test.rb
@@ -1,4 +0,0 @@
-require 'test_helper'
-
-class RegistrationsHelperTest < ActionView::TestCase
-end
test/unit/authentication_test.rb
@@ -1,8 +0,0 @@
-require 'test_helper'
-
-class AuthenticationTest < ActiveSupport::TestCase
- # Replace this with your real tests.
- test "the truth" do
- assert true
- end
-end
test/unit/user_test.rb
@@ -1,8 +0,0 @@
-require 'test_helper'
-
-class UserTest < ActiveSupport::TestCase
- # Replace this with your real tests.
- test "the truth" do
- assert true
- end
-end
test/test_helper.rb
@@ -1,13 +0,0 @@
-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