mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix tests in railties
Since `bundle install` was fixed in `rails plugin new`, it now requires `rails 4.0.0.beta` version in filesystem when running tests. Instead of providing it, we can run tested command with `--dev` option, to use rails from the local directory.
This commit is contained in:
parent
5904295b23
commit
f3482a9fb1
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
|
|||
end
|
||||
|
||||
def test_generation_runs_bundle_install_with_full_and_mountable
|
||||
result = run_generator [destination_root, "--mountable", "--full"]
|
||||
result = run_generator [destination_root, "--mountable", "--full", "--dev"]
|
||||
assert_file "#{destination_root}/Gemfile.lock" do |contents|
|
||||
assert_match(/bukkits/, contents)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue