diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-23 17:45:15 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-23 17:45:15 -0300 |
commit | bec08e774438e0a6bab74f7439106e2bd02ecc5a (patch) | |
tree | 2295af9d69b1ebae84fb4c719180b59c8484f8a6 /railties/test | |
parent | cd7d414e48f537278043bfc77cfb4217e8c89c24 (diff) | |
parent | 558f8aa2ee80ee8cb859f0da9714dc93294c856b (diff) | |
download | rails-bec08e774438e0a6bab74f7439106e2bd02ecc5a.tar.gz rails-bec08e774438e0a6bab74f7439106e2bd02ecc5a.tar.bz2 rails-bec08e774438e0a6bab74f7439106e2bd02ecc5a.zip |
Merge pull request #16267 from robin850/rbx-yaml
Set Psych as the YAML engine for Rubinius
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 409616d0d2..aff484f3eb 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -488,6 +488,19 @@ class AppGeneratorTest < Rails::Generators::TestCase end end + def test_psych_gem + run_generator + gem_regex = /gem 'psych',\s+'~> 2.0', \s+platforms: :rbx/ + + assert_file "Gemfile" do |content| + if defined?(Rubinius) + assert_match(gem_regex, content) + else + assert_no_match(gem_regex, content) + end + end + end + protected def action(*args, &block) |