Skip to content

Tests: db:test:clone was deprecated and removed #527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/spring/test/acceptance_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def spring_env

def assert_output(artifacts, expected)
expected.each do |stream, output|
assert artifacts[stream].include?(output),
"expected #{stream} to include '#{output}'.\n\n#{app.debug(artifacts)}"
assert_match output, artifacts[stream],
"expected #{stream} to include #{output.inspect}.\n\n#{app.debug(artifacts)}"
end
end

Expand Down Expand Up @@ -230,7 +230,7 @@ def exec_name
end

test "binstub" do
assert_success "bin/rails server --help", stdout: "Usage: rails server" # rails command fallback
assert_success "bin/rails server --help", stdout: /Usage:\s+rails server/ # rails command fallback

assert_success "#{app.spring} binstub rake", stdout: "bin/rake: spring already present"

Expand Down
2 changes: 1 addition & 1 deletion lib/spring/test/application_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def copy_to(path)

def generate_scaffold
application.run! "bundle exec rails g scaffold post title:string"
application.run! "bundle exec rake db:migrate db:test:clone"
application.run! "bundle exec rake db:migrate db:test:prepare"
end

def gemspec(name)
Expand Down