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

Add spec helpers #50

Closed
paulcsmith opened this issue Jun 15, 2017 · 3 comments
Closed

Add spec helpers #50

paulcsmith opened this issue Jun 15, 2017 · 3 comments

Comments

@paulcsmith
Copy link
Member

paulcsmith commented Jun 15, 2017

For request specs

Something I've actually used (also includes FactoryBot like factories):
https://gist.github.com/paulcsmith/c5da6e8888d1a50f13fb6d9acc37a6a9

Some experimental ideas:
https://gist.github.com/paulcsmith/d44ac002bd1b7c57dcb8f7217ac499a7

Pages don't need much to get started

html = MyCoolPage.new(whatever_args).render

html.to_s.should contain("some text")
@5minpause
Copy link
Contributor

5minpause commented Nov 10, 2017

This gist cannot be found (404) because of the /edit in the url:
https://gist.github.com/paulcsmith/d44ac002bd1b7c57dcb8f7217ac499a7

@paulcsmith
Copy link
Member Author

Ah you're right. Good catch!

@paulcsmith
Copy link
Member Author

djuber pushed a commit to djuber/lucky that referenced this issue Aug 29, 2021
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