Conversation
Syntax changes: - top-level describe, shared_examples are now RSpec.describe, RSpec.shared_examples changelog: Internal, Source code, Update RSpec syntax
| it 'includes before_actions from IdvSession' do | ||
| expect(subject).to have_actions(:before, :redirect_if_sp_context_needed) | ||
| RSpec.describe Idv::PhoneErrorsController do | ||
| shared_examples_for 'an idv phone errors controller action' do |
There was a problem hiding this comment.
this is one of the files that got indented, recommend ?w=1 to see clearer version of changes here
| @@ -13,6 +13,7 @@ | |||
|
|
|||
| RSpec.configure do |config| | |||
| # see more settings at spec/rails_helper.rb | |||
| config.disable_monkey_patching! | |||
There was a problem hiding this comment.
more info on this here: https://rubydoc.info/github/rspec/rspec-core/RSpec%2FCore%2FConfiguration:disable_monkey_patching!
|
Can you describe the motivation? Is it that the global methods are bad? 🤔 |
Yeah it's using an option to let RSpec be a "better-behaved" gem. Since this is in specs, not in prod, it's pretty minimal. It also made more of a difference with the old "should" style expectations, which relied a lot on monkeypatching ( |
This is not urgent by any means, but it's something that was on my mind, so I figured I'd give converting our base a shot
?w=1to hide whitespace changes on this PRMethodology: