before_filter/before_action in controller/request specs?
8 views
Skip to first unread message
rlw
unread,
Jul 25, 2018, 4:21:21 AM7/25/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rspec
Hi, I've spent quite a bit of time trying to figure out how to skip or stub out several before_filters (yes, rails 3) or before_actions that are in the application_controller.rb file with no success. It seems the #skip_before_filters method is gone, or I'm just not using it correctly. I really need to just bypass these filters because it's a legacy app and it's not just authentication filters. Are there any good examples using Rspec-rails 3.7.x?