instance method
turn_gemfile_entry
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v3.1.12Signature
turn_gemfile_entry()
No documentation comment.
Source
# File railties/lib/rails/generators/app_base.rb, line 191
def turn_gemfile_entry
unless RUBY_VERSION < "1.9.2" || options[:skip_test_unit]
version = RUBY_VERSION >= "1.9.3" ? "'~> 0.8.3'" : "'0.8.2'"
<<-GEMFILE.strip_heredoc
group :test do
# Pretty printed test output
gem 'turn', #{version}, :require => false
end
GEMFILE
end
end
Defined in railties/lib/rails/generators/app_base.rb line 191
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::AppBase