Skip to content

Commit bcf752d

Browse files
committed
Stop using globally exposed DSL
1 parent 73e1830 commit bcf752d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/support/generators.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def self.included(klass)
2020
klass.include(RSpec::Rails::FeatureCheck)
2121
end
2222

23-
shared_examples_for 'a model generator with fixtures' do |name, class_name|
23+
RSpec.shared_examples_for 'a model generator with fixtures' do |name, class_name|
2424
before { run_generator [name, '--fixture'] }
2525

2626
describe 'the spec' do
@@ -38,7 +38,7 @@ def self.included(klass)
3838
end
3939
end
4040

41-
shared_examples_for "a request spec generator" do
41+
RSpec.shared_examples_for "a request spec generator" do
4242
describe 'generated with flag `--no-request-specs`' do
4343
before do
4444
run_generator %w[posts --no-request-specs]

spec/support/shared_examples.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'pathname'
22

3-
shared_examples_for "an rspec-rails example group mixin" do |type, *paths|
3+
RSpec.shared_examples_for "an rspec-rails example group mixin" do |type, *paths|
44
let(:mixin) { described_class }
55

66
def define_group_in(path, group_definition)

0 commit comments

Comments
 (0)