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

Allow some helper methods to be used in Jasminerice #32

Merged
merged 1 commit into from
Feb 13, 2012

Conversation

phuongnd08
Copy link
Contributor

Currently, there is no way that you can use helper methods in jasminerice fixture.
The reason behind it is I want to reuse some views from the application (to avoid duplicate) which in turn rely on some helpers methods of devise
This pull request is very simple. I try to include Jasminerice::HelperMethods (which should be placed inside lib/) into SpecController. Incase Jasminerice::HelperMethods is not found, it just fall back to default (without any helpers)

- Having jasminerice dynamically load Jasminerice::HelperMethods
bradphelan added a commit that referenced this pull request Feb 13, 2012
Allow some helper methods to be used in Jasminerice
@bradphelan bradphelan merged commit acf19af into bradphelan:master Feb 13, 2012
@jmaicher
Copy link

I don't think it is a proper use of begin/rescue unless it's really unexpected that I have no Jasminerice::HelperMethods.

bradphelan added a commit that referenced this pull request May 27, 2012
Fix PR #32. Currently if you have no helpers it just pollutes logs
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

Successfully merging this pull request may close these issues.

None yet

3 participants