Sha256: 84cc7f9472e356457022476b844230989a5bb4f16c3f034b8494622f3b607072

Contents?: true

Size: 1.29 KB

Versions: 53

Compression:

Stored size: 1.29 KB

Contents

require 'shoulda/action_controller/matchers/assign_to_matcher'
require 'shoulda/action_controller/matchers/filter_param_matcher'
require 'shoulda/action_controller/matchers/set_the_flash_matcher'
require 'shoulda/action_controller/matchers/render_with_layout_matcher'
require 'shoulda/action_controller/matchers/respond_with_matcher'
require 'shoulda/action_controller/matchers/respond_with_content_type_matcher'
require 'shoulda/action_controller/matchers/set_session_matcher'
require 'shoulda/action_controller/matchers/route_matcher'

module Shoulda # :nodoc:
  module ActionController # :nodoc:

    # By using the macro helpers you can quickly and easily create concise and
    # easy to read test suites.
    # 
    # This code segment:
    # 
    #   describe UsersController, "on GET to show with a valid id" do
    #     before(:each) do
    #       get :show, :id => User.first.to_param
    #     end
    # 
    #     it { should assign_to(:user) }
    #     it { should respond_with(:success) }
    #     it { should render_template(:show) }
    #     it { should not_set_the_flash) }
    # 
    #     it "should do something else really cool" do
    #       assigns[:user].id.should == 1
    #     end
    #   end
    # 
    # Would produce 5 tests for the show action
    module Matchers
    end
  end
end

Version data entries

53 entries across 53 versions & 15 rubygems

Version Path
Flamefork-shoulda-2.10.1 lib/shoulda/action_controller/matchers.rb
Flamefork-shoulda-2.10.2 lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.0 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.1 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.10 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.11 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.12 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.13 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.14 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.15 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.16 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.17 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.2 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.3 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.4 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.5 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.6 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.7 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
auser-poolparty-1.3.8 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb
fairchild-poolparty-1.3.17 vendor/gems/shoulda/lib/shoulda/action_controller/matchers.rb