- Git: https://github.com/SixArm/sixarm_ruby_application_controller_mock
- Doc: http://sixarm.com/sixarm_ruby_application_controller_mock/doc
- Gem: https://rubygems.org/gems/sixarm_ruby_application_controller_mock
- Contact: Joel Parker Henderson, joel@sixarm.com
- Project: changes, license, contributing.
ApplicationController mock object for testing Rails.
This provides a flash hash, params hash, and session hash.
For docs go to http://sixarm.com/sixarm_ruby_application_controller_mock/doc
Want to help? We're happy to get pull requests.
To install this gem in your shell or terminal:
gem install sixarm_ruby_application_controller_mock
To add this gem to your Gemfile:
gem 'sixarm_ruby_application_controller_mock'
To require the gem in your code:
require 'sixarm_ruby_application_controller_mock'
require 'application_controller_mock'
class FoosController < ApplicationController
def whatever
session[:hello]=world
end
end
foo = ApplicationConroller.new(:params=>{:a=>:b,:c=>:d)})