Skip to content

Commit 5836988

Browse files
committed
Merge pull request rspec#1436 from jdax/master
Resolving rspec#1430 by relocating
2 parents 70e9f7a + 7c54346 commit 5836988

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

Changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
### 3.4.0 Development
22
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.3.3...master)
33

4+
Bug Fixes:
5+
6+
* Fix another load order issued which causes an undefined method `fixture_path` error
7+
when loading rspec-rails after a spec has been created. (Nikki Murray, #1430)
8+
49
### 3.3.3 / 2015-07-15
510
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.3.2...v3.3.3)
611

lib/rspec/rails/configuration.rb

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,6 @@ def self.initialize_configuration(config)
4141
config.backtrace_exclusion_patterns << /vendor\//
4242
config.backtrace_exclusion_patterns << %r{ lib/rspec/rails }
4343

44-
config.include RSpec::Rails::ControllerExampleGroup, :type => :controller
45-
config.include RSpec::Rails::HelperExampleGroup, :type => :helper
46-
config.include RSpec::Rails::ModelExampleGroup, :type => :model
47-
config.include RSpec::Rails::RequestExampleGroup, :type => :request
48-
config.include RSpec::Rails::RoutingExampleGroup, :type => :routing
49-
config.include RSpec::Rails::ViewExampleGroup, :type => :view
50-
config.include RSpec::Rails::FeatureExampleGroup, :type => :feature
51-
52-
if defined?(ActionMailer)
53-
config.include RSpec::Rails::MailerExampleGroup, :type => :mailer
54-
end
55-
56-
if defined?(ActiveJob)
57-
config.include RSpec::Rails::JobExampleGroup, :type => :job
58-
end
59-
6044
# controller settings
6145
config.add_setting :infer_base_class_for_anonymous_controllers, :default => true
6246

@@ -106,6 +90,22 @@ def infer_spec_type_from_file_location!
10690
end
10791
end
10892
end
93+
94+
config.include RSpec::Rails::ControllerExampleGroup, :type => :controller
95+
config.include RSpec::Rails::HelperExampleGroup, :type => :helper
96+
config.include RSpec::Rails::ModelExampleGroup, :type => :model
97+
config.include RSpec::Rails::RequestExampleGroup, :type => :request
98+
config.include RSpec::Rails::RoutingExampleGroup, :type => :routing
99+
config.include RSpec::Rails::ViewExampleGroup, :type => :view
100+
config.include RSpec::Rails::FeatureExampleGroup, :type => :feature
101+
102+
if defined?(ActionMailer)
103+
config.include RSpec::Rails::MailerExampleGroup, :type => :mailer
104+
end
105+
106+
if defined?(ActiveJob)
107+
config.include RSpec::Rails::JobExampleGroup, :type => :job
108+
end
109109
end
110110

111111
initialize_configuration RSpec.configuration

0 commit comments

Comments
 (0)