Skip to content

Commit 1e81161

Browse files
committed
first commit
1 parent 2828583 commit 1e81161

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed

script/rails

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

test/performance/browsing_test.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

test/test_helper.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

test/unit/helpers/home_helper_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require 'test_helper'
2+
3+
class HomeHelperTest < ActionView::TestCase
4+
end

0 commit comments

Comments
 (0)