-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Bring RSpec current with rails 5 beta 3 #1573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
14db3e6
to
298d6fd
Compare
This closes #1571, right? |
Also, I think the |
@bquorning I worked with @sgrif from rails core on this, so it's likely they've got patches. |
I think, if you rebase on master (after #1571) you’ll have just 1 failing spec. |
298d6fd
to
d6e9e26
Compare
@bquorning I've just pushed a rebased version of this. Let's see what happens. |
Yes, there is now one spec example failing:
Running specs locally while bisecting the Rails repository, it seems that rails/rails@de6ad56 is the first offending commit. And sure enough, commenting out Maybe just add one line to our example_app_generator/generate_action_mailer_specs.rb? comment_lines 'config/environments/development.rb', /file_watcher/ Note: I haven’t investigated why that particular line is making the rspec-rails mailer specs fail. |
…or just add a |
d6e9e26
to
1f31c72
Compare
This is the same fix as in the mailer template generator
1f31c72
to
e2e196d
Compare
db0d380
to
0c69f45
Compare
@rspec/rspec can I get a review on this? |
@@ -13,6 +13,8 @@ | |||
function_script_file = File.join(rspec_rails_repo_path, 'script/functions.sh') | |||
|
|||
in_root do | |||
prepend_to_file "Rakefile", "require 'active_support/all'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's totally because rails isn't requiring this properly itself in our sample app, nothing we can really do here :/
❤️ |
Most of this can/should be reverted once Rails 5.0.0 is out, right? |
@bquorning we'll assess which parts of it are necessary when the release candidate drops. |
Biggest issue here is a regression introduced in the rails controller
testing gem which forces us to do a require of
action_controller/metal/rendering
in order to not give a NameErrorwhen booting our test app.