aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-12-22 13:43:58 -0700
committerSean Griffin <sean@thoughtbot.com>2014-12-22 13:43:58 -0700
commit9fff631a06d72e3b9d7a89b9c8f45b9accf69859 (patch)
tree0b582defdb603d388f3faa9f96fa47e9ee9b8d83 /railties/test
parent569c674773144dd4087c2ca0b31fbedbc4caaf14 (diff)
downloadrails-9fff631a06d72e3b9d7a89b9c8f45b9accf69859.tar.gz
rails-9fff631a06d72e3b9d7a89b9c8f45b9accf69859.tar.bz2
rails-9fff631a06d72e3b9d7a89b9c8f45b9accf69859.zip
Skip byebug on all non-MRI rubies, fix tests
The changes in #18149 added tests for the app generator, but only fixed it for the plugin generator (I should have let CI finish though I think it would have failed as an allowed failure).
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/app_generator_test.rb2
-rw-r--r--railties/test/generators/plugin_generator_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 38a082ab9e..3bda924570 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -340,7 +340,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
def test_inclusion_of_a_debugger
run_generator
- if defined?(JRUBY_VERSION) || RUBY_ENGINE == 'rbx'
+ if defined?(JRUBY_VERSION) || RUBY_ENGINE == "rbx"
assert_file "Gemfile" do |content|
assert_no_match(/byebug/, content)
assert_no_match(/debugger/, content)
diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb
index dbc87be614..95a554adef 100644
--- a/railties/test/generators/plugin_generator_test.rb
+++ b/railties/test/generators/plugin_generator_test.rb
@@ -71,7 +71,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase
def test_inclusion_of_a_debugger
run_generator [destination_root, '--full']
- if defined?(JRUBY_VERSION)
+ if defined?(JRUBY_VERSION) || RUBY_ENGINE == "rbx"
assert_file "Gemfile" do |content|
assert_no_match(/byebug/, content)
assert_no_match(/debugger/, content)