diff options
Diffstat (limited to 'railties/test/test_unit')
-rw-r--r-- | railties/test/test_unit/runner_test.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/railties/test/test_unit/runner_test.rb b/railties/test/test_unit/runner_test.rb index be226e3aa5..cd0c66a5f7 100644 --- a/railties/test/test_unit/runner_test.rb +++ b/railties/test/test_unit/runner_test.rb @@ -19,6 +19,16 @@ class TestUnitTestRunnerTest < ActiveSupport::TestCase assert options[:backtrace] end + test "tests run in the test environment by default" do + options = @options.parse([]) + assert_equal "test", options[:environment] + end + + test "can run in a specific environment" do + options = @options.parse(["-e development"]) + assert_equal "development", options[:environment] + end + test "parse the filename and line" do options = @options.parse(["foobar.rb:20"]) assert_equal File.expand_path("foobar.rb"), options[:filename] @@ -52,4 +62,8 @@ class TestUnitTestRunnerTest < ActiveSupport::TestCase assert_nil options[:filename] assert_nil options[:line] end + + test "run multiple files" do + skip "needs implementation" + end end |