Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 233 Bytes

File metadata and controls

12 lines (10 loc) · 233 Bytes

Test Hooks

They are methods in production code that only run when in testing mode.

Example

class ApplicationController < ActionController::Base
  unless Rails.env.test?
    before_filter :require_login
  end
end