Has anyone used Minitest::Spec withing a Rails functional test?

前端 未结 2 1485
花落未央
花落未央 2021-02-15 22:03

The spec library in Minitest is great. I\'ve been able to use it within Rails unit tests no problem. However, Rails functional test inherit from ActionController::TestCase whi

相关标签:
2条回答
  • 2021-02-15 23:02

    Here's a simple test_helper rig to run functional & integration tests in Rails using spec syntax. Based on a gist by tenderlove, this excellent article about MiniTest with Capybara, & a lot of tinkering & source-poring.

    https://gist.github.com/1607879

    0 讨论(0)
  • 2021-02-15 23:03

    Thoughtbot have now split shoulda into shoulda_contexts and shoulda_matchers so the worry about a shift to rspec for thoughtbot doesn't mean shoulda contexts are going away. Just being maintained in the community.

    0 讨论(0)
提交回复
热议问题