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

前端 未结 2 1473
花落未央
花落未央 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

提交回复
热议问题