Code Monkey home page Code Monkey logo

Comments (7)

runlevel5 avatar runlevel5 commented on July 24, 2024

@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.

tragiclifestories avatar tragiclifestories commented on July 24, 2024

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.

cllns avatar cllns commented on July 24, 2024

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.

tragiclifestories avatar tragiclifestories commented on July 24, 2024

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.

runlevel5 avatar runlevel5 commented on July 24, 2024

I vote for spec style minitest for every test examples in Getting Started guide. Should we do it?

cc @AlfonsoUceda @jodosha

from hanami.github.io.

cllns avatar cllns commented on July 24, 2024

@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.

jodosha avatar jodosha commented on July 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.