Skip to content
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

rails console command fails if using Rails 5 #698

Closed
audionerd opened this issue Oct 8, 2015 · 5 comments
Closed

rails console command fails if using Rails 5 #698

audionerd opened this issue Oct 8, 2015 · 5 comments

Comments

@audionerd
Copy link

[..]rails-172c25e7b62b/actionpack/lib/action_controller/test_case.rb:31:in `initialize': wrong number of arguments (0 for 2) (ArgumentError)
    from [..]draper-2.1.0/lib/draper/view_context/build_strategy.rb:41:in `new'

In Rails 5, ActionController::TestRequest.new expects args for env and session, but Draper could be using ActionController::TestRequest.create instead, which provides these.

@arnlen
Copy link

arnlen commented Jun 16, 2016

Still happening with Rails 5.0.0.rc1 (tested with ruby 2.3.1p112)

To reproduce: here is an app where the error occurs: https://github.com/arnlen/github-api-explorer

rails c
# => boom

@pavelbulanov
Copy link

pavelbulanov commented Jul 4, 2016

Still there? Rails 5.0 stable is now out, so should become more of a priority. Or should use rails-5 branch instead of master?

@neves
Copy link

neves commented Jul 9, 2016

Still not working with Rails 5.0 stable

@seanlinsley
Copy link
Member

Hi everyone, please give #752 a try.

@codebycliff
Copy link
Collaborator

This should be fixed in master now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants