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

Good examples of Spinach use #170

Closed
shankardevy opened this issue Oct 20, 2014 · 2 comments
Closed

Good examples of Spinach use #170

shankardevy opened this issue Oct 20, 2014 · 2 comments

Comments

@shankardevy
Copy link

Hi
I got interested in Spinach after seeing Gitlab using it. So far with what I have read in the code samples of Gitlab it looks interesting for me. However, I want to use Spinach with Minitest and Capybara and NOT Rspec.

Do you know of any open source project that makes good use of Spinach/Minitest/Capybara? Most of the projects that I saw are using Rspec with Spinach which makes me feel Minitest is not the best combo with Spinach. I want to read some good code samples of Spinach tests.

Sorry to have this support request on this queue. I do not see anywhere else where such questions can be asked. Sorry for the trouble.

Thanks

@josepjaume
Copy link
Contributor

Hi @shankardevy,

Glad to know you're interested in spinach :). We've been using it non-stop since we built it and to be honest, it's proven to be a great tool to decouple and maintain our test suite.

Actually, spinach codebase is tested with spinach itself. And using minitest! (Well, minispec, which is just syntax sugar on top of minitest).

Check it out:

https://github.com/codegram/spinach/tree/master/features

Spinach works with any test suite as far as it raises an exception when an expectation is not met.

Thanks again for trying out spinach and please let me know if you need some help setting it up in your project.

@shankardevy
Copy link
Author

Thanks @josepjaume for your reply.

I have successfully started using it Spinach in my test rails project. I am looking for some suggestion as to what is the preferred way to add fixtures when using Spinach?

There is this post on the forum but without much info.
https://groups.google.com/forum/#!topic/spinach_bdd/_VJSMGdYrxs

As developers of Spinach, do you prefer FactoryGirl over Fixtures and advice the same for the adopters?

How am I going to run my fixtures before running the tests?

I am happy to take forward the discussion in the google groups rather than here.

Anyone interested in my question, can you reply to this post asked a few years before?
https://groups.google.com/forum/#!topic/spinach_bdd/_VJSMGdYrxs

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

3 participants