aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/app_generator_test.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-14 12:31:51 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-14 12:31:51 -0300
commit017632fe2b45fca68685bed2dabfa97bb6722351 (patch)
treedbc2e20e9869d833e0d0377e51479ead94b3a956 /railties/test/generators/app_generator_test.rb
parentf4c8f8c5aaaa778fcbae09674e2b3edb184f8dd3 (diff)
downloadrails-017632fe2b45fca68685bed2dabfa97bb6722351.tar.gz
rails-017632fe2b45fca68685bed2dabfa97bb6722351.tar.bz2
rails-017632fe2b45fca68685bed2dabfa97bb6722351.zip
Remove not used date variable and another test warning
Diffstat (limited to 'railties/test/generators/app_generator_test.rb')
-rw-r--r--railties/test/generators/app_generator_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 05a741403c..26e912fd9e 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -89,7 +89,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
output = Dir.chdir(app_root) do
`rails new --help`
end
- assert_match /rails new APP_PATH \[options\]/, output
+ assert_match(/rails new APP_PATH \[options\]/, output)
assert_equal true, $?.success?
end
@@ -378,7 +378,6 @@ class AppGeneratorTest < Rails::Generators::TestCase
end
def test_humans_txt_file
- date = Date.today.strftime("%B %d, %Y")
run_generator [File.join(destination_root, 'things-43')]
assert_file "things-43/public/humans.txt", /Name: Things43/, /Software: Ruby on Rails/
end