blowmage / minitest-rails-capybara

Capybara integration for MiniTest::Rails
http://blowmage.com/minitest-rails-capybara
MIT License
131 stars 40 forks source link

Update README to reflect —no-spec default #40

Closed mikej closed 7 years ago

mikej commented 8 years ago

Hi!

Just been adding minitest-rails-capybara to a project. Am I right that the default for rails generate minitest:feature is now to generate tests that don't use Capybara's spec DSL?

and that --spec needs to be specified to generate a test using feature and scenario?

If so the README just needed reordering slightly.. so this should be up to date now.

blowmage commented 8 years ago

What version of rails are you using? Spec was not the default for rails 4, but it is the default for rails 5. Compare the README in master to the README in the 2.x branch.

mikej commented 8 years ago

Thanks for taking a look at this, and sorry for the confusion. This is on a Rails 5 app.

After adding

gem "minitest-rails-capybara"

to the Gemfile the versions picked up are:

minitest-rails-capybara (3.0.0)
      capybara (~> 2.7)
      minitest-capybara (~> 0.8)
      minitest-metadata (~> 0.6)
      minitest-rails (~> 3.0)

Is the 2.x branch is an older version and master is for the 3.0 release?

Was just trying to figure out the behaviour based on this code.

Maybe just the line "Which will generate a feature test using the Capybara spec DSL" needs updating on the master version as it now prefixes the non-DSL example?

Thanks!

blowmage commented 7 years ago

3.0.1 fixes the bug in the spec configuration. Closing.