On Sat, Jul 8, 2017 at 11:26 PM, Ralph Shnelvar <
ral...@dos32.com> 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
twitter: @hassan
Consulting Availability : Silicon Valley or remote