Commit 0ac38e9f by Jon Yurek

Fix a strange new failure in 1.9.2/3.2

parent e803a12a
......@@ -72,8 +72,12 @@ class GeneratorTest < Rails::Generators::TestCase
context 'without required arguments' do
should 'not create the migration' do
silence_stream(STDERR) { run_generator %w() }
assert_no_migration 'db/migrate/add_attachment_avatar_to_users.rb'
begin
silence_stream(STDERR) { run_generator %w() }
assert_no_migration 'db/migrate/add_attachment_avatar_to_users.rb'
rescue Thor::RequiredArgumentMissingError
# This is also OK. It happens in 1.9.2 and Rails 3.2
end
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment