Thank you so much, Hassan. I didn't see any warnings.
Is there documentation I can look at that explains what "get" does? Ralph On Sunday, July 9, 2017 at 9:34:25 AM UTC-6, Hassan Schroeder wrote: > > On Sat, Jul 8, 2017 at 11:26 PM, Ralph Shnelvar <ral...@dos32.com > <javascript:>> wrote: > > > I'm converting some code from Rails 4 to Rails 5.1.1 so that may be > where > > the following problems lies. > > > > > > Part of the Rspec messages I'm getting is: > > 1) ArticlesController GET #new returns a success response > > Failure/Error: get :new, {}, valid_session > > > > ArgumentError: > > wrong number of arguments (given 2, expected 1) > > > describe "GET #new" do > > it "returns a success response" do > > byebug > > get :new, {}, valid_session > > replace the line above with: > > get :new, params: {}, session: valid_session > > > expect(response).to be_success > > end > > end > > I *believe* if you'd gone through converting to Rails 5.0 first you'd > have seen deprecation warnings about that. I think :-) > > In any case, HTH. > -- > Hassan Schroeder ------------------------ hassan.s...@gmail.com > <javascript:> > twitter: @hassan > Consulting Availability : Silicon Valley or remote > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/286a5719-94ec-46f6-a0c1-720615fcdef3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.