thoughtbot / shoulda

Makes tests easy on the fingers and the eyes

shoulda / lib / shoulda / action_controller.rb
100644 27 lines (23 sloc) 0.624 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'shoulda'
require 'shoulda/action_controller/matchers'
require 'shoulda/action_controller/macros'
 
module Test # :nodoc: all
  module Unit
    class TestCase
      include Shoulda::ActionController::Matchers
      extend Shoulda::ActionController::Macros
    end
  end
end
 
require 'shoulda/active_record/assertions'
require 'shoulda/action_mailer/assertions'
 
module ActionController #:nodoc: all
  module Integration
    class Session
      include Shoulda::Assertions
      include Shoulda::Helpers
      include Shoulda::ActiveRecord::Assertions
      include Shoulda::ActionMailer::Assertions
    end
  end
end