File tree Expand file tree Collapse file tree 5 files changed +41
-0
lines changed Expand file tree Collapse file tree 5 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env ruby.exe
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
Original file line number Diff line number Diff line change
1
+ require 'test_helper'
2
+
3
+ class HomeControllerTest < ActionController ::TestCase
4
+ test "should get index" do
5
+ get :index
6
+ assert_response :success
7
+ end
8
+
9
+ end
Original file line number Diff line number Diff line change
1
+ require 'test_helper'
2
+ require 'rails/performance_test_help'
3
+
4
+ # Profiling results for each test method are written to tmp/performance.
5
+ class BrowsingTest < ActionDispatch ::PerformanceTest
6
+ def test_homepage
7
+ get '/'
8
+ end
9
+ end
Original file line number Diff line number Diff line change
1
+ ENV [ "RAILS_ENV" ] = "test"
2
+ require File . expand_path ( '../../config/environment' , __FILE__ )
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport ::TestCase
6
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
7
+ #
8
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
9
+ # -- they do not yet inherit this setting
10
+ fixtures :all
11
+
12
+ # Add more helper methods to be used by all tests here...
13
+ end
Original file line number Diff line number Diff line change
1
+ require 'test_helper'
2
+
3
+ class HomeHelperTest < ActionView ::TestCase
4
+ end
You can’t perform that action at this time.
0 commit comments