diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2014-01-11 03:58:25 -0800 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2014-01-11 03:58:25 -0800 |
commit | 4ae3da66f71fac4fb5cd5796e7460dc4e982891b (patch) | |
tree | 50bd4cc9d4670fd742f5de3a3416bc6de479c7a7 /railties/lib/rails/generators/testing | |
parent | caa981d88112f019ade868f75af6b5f399c244a4 (diff) | |
parent | b4f9377b3a8bc85cb98913163f66760df6650ccf (diff) | |
download | rails-4ae3da66f71fac4fb5cd5796e7460dc4e982891b.tar.gz rails-4ae3da66f71fac4fb5cd5796e7460dc4e982891b.tar.bz2 rails-4ae3da66f71fac4fb5cd5796e7460dc4e982891b.zip |
Merge pull request #13671 from arunagw/upgrade-bundler
Removing without_thor_debug
Diffstat (limited to 'railties/lib/rails/generators/testing')
-rw-r--r-- | railties/lib/rails/generators/testing/behaviour.rb | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/railties/lib/rails/generators/testing/behaviour.rb b/railties/lib/rails/generators/testing/behaviour.rb index 8e9028a3fb..7576eba6e0 100644 --- a/railties/lib/rails/generators/testing/behaviour.rb +++ b/railties/lib/rails/generators/testing/behaviour.rb @@ -61,11 +61,9 @@ module Rails # You can provide a configuration hash as second argument. This method returns the output # printed by the generator. def run_generator(args=self.default_arguments, config={}) - without_thor_debug do - capture(:stdout) do - args += ['--skip-bundle'] unless args.include? '--dev' - self.generator_class.start(args, config.reverse_merge(destination_root: destination_root)) - end + capture(:stdout) do + args += ['--skip-bundle'] unless args.include? '--dev' + self.generator_class.start(args, config.reverse_merge(destination_root: destination_root)) end end @@ -102,14 +100,6 @@ module Rails dirname, file_name = File.dirname(absolute), File.basename(absolute).sub(/\.rb$/, '') Dir.glob("#{dirname}/[0-9]*_*.rb").grep(/\d+_#{file_name}.rb$/).first end - - # TODO: remove this once Bundler 1.5.2 is released - def without_thor_debug # :nodoc: - thor_debug, ENV['THOR_DEBUG'] = ENV['THOR_DEBUG'], nil - yield - ensure - ENV['THOR_DEBUG'] = thor_debug - end end end end |