diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2012-05-22 13:26:06 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2012-05-22 13:26:06 +0400 |
commit | fe7038eac8c1a4df57a0aacf4dd77da5ef87f6df (patch) | |
tree | c4edab8348ee85aaa0cecf4fa86757ffaf4f80de /railties/test/generators/actions_test.rb | |
parent | 0638e6bb14541d128b11f21c308ae7717196cb6f (diff) | |
download | rails-fe7038eac8c1a4df57a0aacf4dd77da5ef87f6df.tar.gz rails-fe7038eac8c1a4df57a0aacf4dd77da5ef87f6df.tar.bz2 rails-fe7038eac8c1a4df57a0aacf4dd77da5ef87f6df.zip |
Use new hash syntax for generators gem method
The Gemfile of new application uses ruby 1.9 hashes. Gem method of
generators should use them too. It prevents from mixing two kinds of
syntax in one file.
Diffstat (limited to 'railties/test/generators/actions_test.rb')
-rw-r--r-- | railties/test/generators/actions_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/test/generators/actions_test.rb b/railties/test/generators/actions_test.rb index a8c8fcd5b7..bc086c5986 100644 --- a/railties/test/generators/actions_test.rb +++ b/railties/test/generators/actions_test.rb @@ -67,6 +67,14 @@ class ActionsTest < Rails::Generators::TestCase assert_file 'Gemfile', /^gem "rspec-rails"$/ end + def test_gem_should_include_options + run_generator + + action :gem, 'rspec', github: 'dchelimsky/rspec', tag: '1.2.9.rc1' + + assert_file 'Gemfile', /gem "rspec", github: "dchelimsky\/rspec", tag: "1\.2\.9\.rc1"/ + end + def test_gem_group_should_wrap_gems_in_a_group run_generator |