Skip to content

robinboening/rspec-issue-demo

Repository files navigation

README

This app contains two failing tests:

Helper test

rspec/rspec-rails#2481

The example fails if following criteria is met:

  • Using Rails 6.1 (Rails 6.0.x works fine)
  • Injecting helper_method to the controller within the rspec example

This app is using the rspec-rails main branch from GitHub, which currently resolves in v5.1.0pre but it also fails with rspec-rails 4.1.1 and 5.0.

You can set up the app and run the failing test with:

git clone git@github.com:robinboening/rspec-issue-demo.git && \
  cd rspec-issue-demo && \
  bundle install && \
  bundle exec rspec spec/helpers

The example should succeed, but it fails.

Model test

rspec/rspec-rails#2483

The example fails when using Rails 6.1 (Rails 6.0.x works fine).

You can set up the app and run the failing test with:

git clone git@github.com:robinboening/rspec-issue-demo.git && \
  cd rspec-issue-demo && \
  bundle install && \
  bundle exec rspec spec/models

About

Demoes an issue in rspec-rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published