Comments (7)
@tragiclifestories thanks for filing this issue. I agree that the Getting Started Guide should be more consistent regarding the test framework choice. IMO I would opt for minitest instead of RSpec because of its being bundled with Ruby.
from hanami.github.io.
Yes, especially as that's what hanami new
gives you without further specification. I personally prefer the RSpec-style assertions, but at the end of the day it's all just different ways to throw an error if something is false.
from hanami.github.io.
Thanks for submitting this @tragiclifestories!
The Getting Started guide actually is using Minitest 😄
It's just using the 'spec' syntax, rather than the normal syntax.
from hanami.github.io.
D'oh! And that's how long it's been since I used minitest ... Obviously happy for this to be closed since it was my own blunder and confusion.
from hanami.github.io.
I vote for spec style minitest for every test examples in Getting Started guide. Should we do it?
from hanami.github.io.
@joneslee85 The only ones I see that use assert
are feature specs, but it looks like we'd need to add capybara_minitest_spec
to change those over.
from hanami.github.io.
@tragiclifestories No worries about the confusion. We're happy that you opened this ticket anyway. Sync guides with actual implementation is hard. Better to check from time to time. 😉
@joneslee85 @cllns The "Getting Started" guide targets the most possible "vanilla" version of a Hanami project. Moving to RSpec like syntax for MiniTest or capybara_minitest_spec
, requires that people following the guide to install these extra gems.
from hanami.github.io.
Related Issues (20)
- Add information about #project method (models)
- Docs improvement HOT 6
- Syntax highlighting bug HOT 1
- Guide: sessions is misleading regarding custom session adapters
- Broken links HOT 2
- Better to add ".one" at the end for queries which uses limit
- Incomplete guide share code of views
- Add Guide for Deploying
- Doc: fix code in Guides/1.1/Architecture/Interactors
- Update search to only show newest version HOT 4
- GS Guide: Hanami 1.2 test count is different HOT 1
- Algolia search HOT 6
- Announcing Hanami v1.2.0 - buttons share & tweet don't working HOT 2
- Guides returns incorrect version
- Google search results are dead HOT 3
- Atom feed is broken
- Hanami security page is broken HOT 4
- Disable HTTP and redirect to HTTPS? HOT 4
- Maling List sign up is broken
- Write 2.1.0.rc1 release blog post
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hanami.github.io.