Я запускаю приложение Rails 5.2.1 с Ruby 2.5.1.
Когда я запускаю rails console
, я получаю:
37: from -e:1:in `<main>'
36: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
35: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
34: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `load'
33: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
32: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `block in load'
31: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `load'
30: from /Users/johannes/Documents/Dev/Uptrans/Backend/bin/rails:9:in `<top (required)>'
29: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
28: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
27: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
26: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
25: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands.rb:18:in `<top (required)>'
24: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/command.rb:46:in `invoke'
23: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/command/base.rb:65:in `perform'
22: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
21: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
20: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
19: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands/console/console_command.rb:96:in `perform'
18: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands/console/console_command.rb:19:in `start'
17: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands/console/console_command.rb:19:in `new'
16: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/commands/console/console_command.rb:29:in `initialize'
15: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/engine.rb:444:in `load_console'
14: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/application.rb:535:in `run_console_blocks'
13: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/engine/railties.rb:15:in `each'
12: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/engine/railties.rb:15:in `each'
11: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/application.rb:535:in `block in run_console_blocks'
10: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/railtie.rb:233:in `run_console_blocks'
9: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/railtie.rb:255:in `each_registered_block'
8: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/railtie.rb:255:in `each'
7: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.1/lib/rails/railtie.rb:233:in `block in run_console_blocks'
6: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/drape-1.0.0.beta1/lib/drape/railtie.rb:62:in `block in <class:Railtie>'
5: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/drape-1.0.0.beta1/lib/drape/view_context.rb:49:in `build'
4: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/drape-1.0.0.beta1/lib/drape/view_context/build_strategy.rb:29:in `call'
3: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/drape-1.0.0.beta1/lib/drape/view_context/build_strategy.rb:39:in `controller'
2: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/drape-1.0.0.beta1/lib/drape/view_context/build_strategy.rb:39:in `tap'
1: from /usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/drape-1.0.0.beta1/lib/drape/view_context/build_strategy.rb:40:in `block in controller'
/usr/local/var/rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/actionpack-5.2.1/lib/action_controller/test_case.rb:42:in `create': wrong number of arguments (given 0, expected 1) (ArgumentError)
ИсследованиеGoogle сказал мне, что это связано с drape и что это было исправлено.
https://github.com/drapergem/draper/pull/759
Но я использую последнюю версию Drape.Это результат bundle update
:
Using drape 1.0.0.beta1
Что еще я могу сделать, чтобы это исправить?
Кстати.Я не использую никаких тестовых случаев.