Skip to content

Commit

Permalink
Remove Turn from default Gemfile.
Browse files Browse the repository at this point in the history
We still looking for a best presentation for tests output.
  • Loading branch information
guilleiguaran committed Oct 22, 2011
1 parent c330905 commit a458833
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
11 changes: 0 additions & 11 deletions railties/lib/rails/generators/app_base.rb
Expand Up @@ -190,17 +190,6 @@ def ruby_debugger_gemfile_entry
end end
end end


def turn_gemfile_entry
unless RUBY_VERSION < "1.9.2" || options[:skip_test_unit]
<<-GEMFILE.strip_heredoc
group :test do
# Pretty printed test output
gem 'turn', :require => false
end
GEMFILE
end
end

def assets_gemfile_entry def assets_gemfile_entry
<<-GEMFILE.strip_heredoc <<-GEMFILE.strip_heredoc
# Gems used only for assets and not required # Gems used only for assets and not required
Expand Down
2 changes: 0 additions & 2 deletions railties/lib/rails/generators/rails/app/templates/Gemfile
Expand Up @@ -21,5 +21,3 @@ source 'http://rubygems.org'


# To use debugger # To use debugger
# <%= ruby_debugger_gemfile_entry %> # <%= ruby_debugger_gemfile_entry %>

<%= turn_gemfile_entry -%>
15 changes: 0 additions & 15 deletions railties/test/generators/app_generator_test.rb
Expand Up @@ -242,21 +242,6 @@ def test_javascript_is_skipped_if_required
end end
end end


def test_inclusion_of_turn_gem_in_gemfile
run_generator
assert_file "Gemfile" do |contents|
assert_match(/gem 'turn'/, contents) unless RUBY_VERSION < '1.9.2'
assert_no_match(/gem 'turn'/, contents) if RUBY_VERSION < '1.9.2'
end
end

def test_turn_gem_is_not_included_in_gemfile_if_skipping_test_unit
run_generator [destination_root, "--skip-test-unit"]
assert_file "Gemfile" do |contents|
assert_no_match(/gem 'turn'/, contents) unless RUBY_VERSION < '1.9.2'
end
end

def test_inclusion_of_ruby_debug def test_inclusion_of_ruby_debug
run_generator run_generator
assert_file "Gemfile" do |contents| assert_file "Gemfile" do |contents|
Expand Down

0 comments on commit a458833

Please sign in to comment.