When I run my Rspec version 3 tests, I receive the following failure warnings:
Subfile filtering :example_group deprecated. Instead, use a sub-bowl for filtering. Called from /path/to/file.rb:6: in `block in '.
Subfile filtering :example_group deprecated. Instead, use a sub-bowl for filtering. Called from /path/to/file.rb:8: in `block in '.
In path / to / file.rb:
RSpec.configure do |config| module MyCodeHelpers
Does this just mean removing "example_group: {}" around the value: file_path (see below)?
config.include MyCodeHelpers, :file_path => %r(spec/services/my_code)
and
config.before(:all, :file_path => %r(spec/services/my_code)) do @stub = true end
ruby-on-rails rspec
SamuelLJohnson
source share