Skip to content

Commit

Permalink
Removed tests for rescue branch for Rails 2.x compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gazay committed Jun 20, 2011
1 parent 78cd3f9 commit 91bbb8e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions railties/test/fixtures/lib/generators/wrong_generator.rb

This file was deleted.

6 changes: 0 additions & 6 deletions railties/test/generators_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ def test_find_by_namespace_without_base_or_context_looks_into_rails_namespace
assert Rails::Generators.find_by_namespace(:model) assert Rails::Generators.find_by_namespace(:model)
end end


def test_find_by_namespace_show_warning_if_generator_cant_be_loaded
output = capture(:stderr) { Rails::Generators.find_by_namespace(:wrong) }
assert_match(/\[WARNING\] Could not load generator/, output)
assert_match(/Rails 2\.x generator/, output)
end

def test_invoke_with_nested_namespaces def test_invoke_with_nested_namespaces
model_generator = mock('ModelGenerator') do model_generator = mock('ModelGenerator') do
expects(:start).with(["Account"], {}) expects(:start).with(["Account"], {})
Expand Down

0 comments on commit 91bbb8e

Please sign in to comment.