diff options
| author | Luc Donnet | 2012-01-06 17:48:53 +0100 |
|---|---|---|
| committer | Luc Donnet | 2012-01-06 17:48:53 +0100 |
| commit | f15300dd765252003da9f112775b9caed065c921 (patch) | |
| tree | 4501bef526ed159a0aeceb8c33709f4bb2c703ec /test | |
| download | chouette-core-f15300dd765252003da9f112775b9caed065c921.tar.bz2 | |
Initialize chouette2
Diffstat (limited to 'test')
| -rw-r--r-- | test/fixtures/.gitkeep | 0 | ||||
| -rw-r--r-- | test/functional/.gitkeep | 0 | ||||
| -rw-r--r-- | test/functional/lines_controller_test.rb | 7 | ||||
| -rw-r--r-- | test/functional/welcome_controller_test.rb | 7 | ||||
| -rw-r--r-- | test/integration/.gitkeep | 0 | ||||
| -rw-r--r-- | test/performance/browsing_test.rb | 12 | ||||
| -rw-r--r-- | test/test_helper.rb | 13 | ||||
| -rw-r--r-- | test/unit/.gitkeep | 0 | ||||
| -rw-r--r-- | test/unit/helpers/lines_helper_test.rb | 4 | ||||
| -rw-r--r-- | test/unit/helpers/welcome_helper_test.rb | 4 |
10 files changed, 47 insertions, 0 deletions
diff --git a/test/fixtures/.gitkeep b/test/fixtures/.gitkeep new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test/fixtures/.gitkeep diff --git a/test/functional/.gitkeep b/test/functional/.gitkeep new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test/functional/.gitkeep diff --git a/test/functional/lines_controller_test.rb b/test/functional/lines_controller_test.rb new file mode 100644 index 000000000..7e8bfcd51 --- /dev/null +++ b/test/functional/lines_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class LinesControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb new file mode 100644 index 000000000..fb5085692 --- /dev/null +++ b/test/functional/welcome_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class WelcomeControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/integration/.gitkeep b/test/integration/.gitkeep new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test/integration/.gitkeep diff --git a/test/performance/browsing_test.rb b/test/performance/browsing_test.rb new file mode 100644 index 000000000..3fea27b91 --- /dev/null +++ b/test/performance/browsing_test.rb @@ -0,0 +1,12 @@ +require 'test_helper' +require 'rails/performance_test_help' + +class BrowsingTest < ActionDispatch::PerformanceTest + # Refer to the documentation for all available options + # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory] + # :output => 'tmp/performance', :formats => [:flat] } + + def test_homepage + get '/' + end +end diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 000000000..8bf1192ff --- /dev/null +++ b/test/test_helper.rb @@ -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 diff --git a/test/unit/.gitkeep b/test/unit/.gitkeep new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test/unit/.gitkeep diff --git a/test/unit/helpers/lines_helper_test.rb b/test/unit/helpers/lines_helper_test.rb new file mode 100644 index 000000000..f9353c9b7 --- /dev/null +++ b/test/unit/helpers/lines_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class LinesHelperTest < ActionView::TestCase +end diff --git a/test/unit/helpers/welcome_helper_test.rb b/test/unit/helpers/welcome_helper_test.rb new file mode 100644 index 000000000..d6ded5995 --- /dev/null +++ b/test/unit/helpers/welcome_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class WelcomeHelperTest < ActionView::TestCase +end |
