diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-01-10 06:59:07 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-01-18 17:12:47 +0900 |
commit | 8b0e52556e917c65d7f623174b2c5cbf806e611e (patch) | |
tree | 73b97085b56cee4fd6ce26594ef2ef92bd006406 | |
parent | 02902e00ab9fc67812accf72d61847c65cd25615 (diff) | |
download | rails-8b0e52556e917c65d7f623174b2c5cbf806e611e.tar.gz rails-8b0e52556e917c65d7f623174b2c5cbf806e611e.tar.bz2 rails-8b0e52556e917c65d7f623174b2c5cbf806e611e.zip |
script => bin
-rw-r--r-- | guides/source/command_line.md | 2 | ||||
-rw-r--r-- | railties/test/application/runner_test.rb | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md index 0081e6427e..2790a4740a 100644 --- a/guides/source/command_line.md +++ b/guides/source/command_line.md @@ -442,7 +442,7 @@ app/model/post.rb: NOTE. When using specific annotations and custom annotations, the annotation name (FIXME, BUG etc) is not displayed in the output lines. -By default, `rake notes` will look in the `app`, `config`, `lib`, `script` and `test` directories. If you would like to search other directories, you can provide them as a comma separated list in an environment variable `SOURCE_ANNOTATION_DIRECTORIES`. +By default, `rake notes` will look in the `app`, `config`, `lib`, `bin` and `test` directories. If you would like to search other directories, you can provide them as a comma separated list in an environment variable `SOURCE_ANNOTATION_DIRECTORIES`. ```bash $ export SOURCE_ANNOTATION_DIRECTORIES='rspec,vendor' diff --git a/railties/test/application/runner_test.rb b/railties/test/application/runner_test.rb index f65b5e2f2d..6595c40f8b 100644 --- a/railties/test/application/runner_test.rb +++ b/railties/test/application/runner_test.rb @@ -37,27 +37,27 @@ module ApplicationTests end def test_should_run_file - app_file "script/count_users.rb", <<-SCRIPT + app_file "bin/count_users.rb", <<-SCRIPT puts User.count SCRIPT - assert_match "42", Dir.chdir(app_path) { `bundle exec rails runner "script/count_users.rb"` } + assert_match "42", Dir.chdir(app_path) { `bundle exec rails runner "bin/count_users.rb"` } end def test_should_set_dollar_0_to_file - app_file "script/dollar0.rb", <<-SCRIPT + app_file "bin/dollar0.rb", <<-SCRIPT puts $0 SCRIPT - assert_match "script/dollar0.rb", Dir.chdir(app_path) { `bundle exec rails runner "script/dollar0.rb"` } + assert_match "bin/dollar0.rb", Dir.chdir(app_path) { `bundle exec rails runner "bin/dollar0.rb"` } end def test_should_set_dollar_program_name_to_file - app_file "script/program_name.rb", <<-SCRIPT + app_file "bin/program_name.rb", <<-SCRIPT puts $PROGRAM_NAME SCRIPT - assert_match "script/program_name.rb", Dir.chdir(app_path) { `bundle exec rails runner "script/program_name.rb"` } + assert_match "bin/program_name.rb", Dir.chdir(app_path) { `bundle exec rails runner "bin/program_name.rb"` } end def test_with_hook |