Skip to content

Commit f6a2a83

Browse files
maclover7sebjacobs
authored andcommitted
Get rspec-rails running on Rails 5-0-stable (rspec#1760)
* Add missing require for SourceAnnotationExtractor * 5-0-0 --> 5-0-stable
1 parent bb9ae6d commit f6a2a83

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ matrix:
5858
- rvm: 2.2.2
5959
env: RAILS_VERSION=master
6060
- rvm: 2.2.2
61-
env: RAILS_VERSION=5.0.0
61+
env: RAILS_VERSION=5-0-stable
6262
- rvm: 2.3.1
6363
env: RAILS_VERSION=master
6464
- rvm: 2.3.1
65-
env: RAILS_VERSION=5.0.0
65+
env: RAILS_VERSION=5-0-stable
6666
exclude:
6767
# 3.0.x is not supported on MRI 2.0+
6868
- rvm: 2.0.0

lib/rspec-rails.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module Rails
88
class Railtie < ::Rails::Railtie
99
# As of Rails 5.1.0 you can register directories to work with `rake notes`
1010
if ::Rails::VERSION::STRING >= '5.1'
11+
require 'rails/source_annotation_extractor'
1112
SourceAnnotationExtractor::Annotation.register_directories("spec")
1213
end
1314
# Rails-3.0.1 requires config.app_generators instead of 3.0.0's config.generators

0 commit comments

Comments
 (0)