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

Cucumber testing -> create method "last_json" where? #49

Open
jongillies opened this issue Jul 16, 2013 · 1 comment
Open

Cucumber testing -> create method "last_json" where? #49

jongillies opened this issue Jul 16, 2013 · 1 comment

Comments

@jongillies
Copy link

Greetings,
In the README.md it says to:

"You also need to define a last_json method"

Where would you define this method?

Thanks,
Jon.

@morozgrafix
Copy link

Not sure if this helps.
This is in my <cucumber_project>/features/support/json_spec.rb:

module JSONSpecInterface
    def last_json
        #last_response.body contains raw JSON from API response that my http client gets
        last_response.body
    end
end

World(JSONSpecInterface)

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

No branches or pull requests

2 participants