Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Failure/Error: expect(json['title']).to eq('Learn Elm') #30

Closed
akhmadodi opened this issue Feb 7, 2019 · 0 comments
Closed

Failure/Error: expect(json['title']).to eq('Learn Elm') #30

akhmadodi opened this issue Feb 7, 2019 · 0 comments

Comments

@akhmadodi
Copy link

Hi,
I got this error when run bundle exec rspec

Failures:

  1. Todos API POST /todos when the request is valid creates a todo
    Failure/Error: expect(json['title']).to eq('Learn Elm')

    NoMethodError:
    undefined method `[]' for nil:NilClass

Finished in 1.1 seconds (files took 3.14 seconds to load)
18 examples, 1 failure

Failed examples:

rspec ./spec/requests/todos_spec.rb:60 # Todos API POST /todos when the request is valid creates a todo

Could you please help me
Thanks

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

No branches or pull requests

1 participant