...put it into config/initializers/ to make those warnings go away. Since we're using RSpec on most projects, I've transformed the test for it to a spec. See the...
If you use rails_admin, your specs pass with the rspec binary, but not using rake spec (or rake parallel:spec etc), put this at the top of your spec...
Spreewald 1.1.0 drops the be_true and be_false matchers in order to be RSpec 3 and Ruby 2 compatible. For backward compatibility, these matchers are replaced with == true and...
When using TextMate2 with the cucumber bundle, it does not recognize step definitions (e.g. custom_steps.rb) as such but believes they...
...and should be used appropriately based on the situation. The majority of examples on rspec's story runner currently on the web, including mine, are of the imperative type. Since...
Now supports RSpec 3 and Rails 4 Drops support for state_machine, which has some issues with Rails 4 and isn't actively maintained
Using this gem, whenever a Capybara test in Cucumber, Rspec or Minitest fails, the HTML for the failed page and a screenshot (when using capybara-webkit, Selenium or poltergeist) is...
...increases, too. You can use the very same way Henning suggested for speeding up RSpec some time ago. Put the following into features/support/deferred_garbage_collection.rb Before do DeferredGarbageCollection.start end After do DeferredGarbageCollection.reconsider...
...USERS_PER_PAGE", 10, MyCustomObject There's a card with the constants helper for Rspec...
Best results in other decks
Add in Gemfile: group :development, :test do gem 'rspec-rails' gem 'spork-rails' end group :test do gem 'capybara' gem 'database_cleaner' gem 'email_spec' gem 'poltergeist' gem 'launchy'
...controllers will be inferred # automatically. This will be the default behavior in future versions of # rspec-rails. config.infer_base_class_for_anonymous_controllers = true # Run specs in random order to...
...now, Chapter 8 is currently work in progress for the Rails 7 version Documentation for rspec-core Using metadata attributes to write spec-type specific before blocks Shared examples and...
...method and observe its return value or side effects. Your MovieDB already uses the gem rspec-rails which has many different types of specs. These help you take a close...