Skip to content

Commit 7fd06ee

Browse files
arthurnnrafaelfranca
authored andcommitted
Dont check bundler output on plugin generator test
1 parent 1703dd7 commit 7fd06ee

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

railties/test/generators/plugin_generator_test.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,11 @@ def test_ensure_that_database_option_is_passed_to_app_generator
156156

157157
def test_generation_runs_bundle_install_with_full_and_mountable
158158
result = run_generator [destination_root, "--mountable", "--full", "--dev"]
159+
assert_match(/run bundle install/, result)
160+
assert $?.success?, "Command failed: #{result}"
159161
assert_file "#{destination_root}/Gemfile.lock" do |contents|
160162
assert_match(/bukkits/, contents)
161163
end
162-
assert_match(/run bundle install/, result)
163-
assert_match(/Using bukkits \(?0\.0\.1\)?/, result)
164-
assert_match(/Your bundle is complete/, result)
165-
assert_equal 1, result.scan("Your bundle is complete").size
166164
end
167165

168166
def test_skipping_javascripts_without_mountable_option

0 commit comments

Comments
 (0)