https://github.com/sixarm/sixarm_ruby_application_controller_mock
SixArm.com » Ruby » ApplicationController mock for Rails
https://github.com/sixarm/sixarm_ruby_application_controller_mock
applicationcontroller gem mock rails ruby
Last synced: 2 months ago
JSON representation
SixArm.com » Ruby » ApplicationController mock for Rails
- Host: GitHub
- URL: https://github.com/sixarm/sixarm_ruby_application_controller_mock
- Owner: SixArm
- License: other
- Created: 2010-05-23T23:36:37.000Z (about 16 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T09:18:11.000Z (about 1 year ago)
- Last Synced: 2026-04-17T21:46:11.730Z (3 months ago)
- Topics: applicationcontroller, gem, mock, rails, ruby
- Language: Ruby
- Homepage: http://sixarm.com
- Size: 351 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# SixArm.com » Ruby »
ApplicationController mock for Rails
[](http://badge.fury.io/rb/sixarm_ruby_application_controller_mock)
[](https://travis-ci.org/SixArm/sixarm_ruby_application_controller_mock)
[](https://codeclimate.com/github/SixArm/sixarm_ruby_application_controller_mock/maintainability)
* Git:
* Doc:
* Gem:
* Contact: Joel Parker Henderson,
* Project: [changes](CHANGES.md), [license](LICENSE.md), [contributing](CONTRIBUTING.md).
## Introduction
ApplicationController mock object for testing Rails.
This provides a flash hash, params hash, and session hash.
For docs go to
Want to help? We're happy to get pull requests.
## Install
### Gem
To install this gem in your shell or terminal:
gem install sixarm_ruby_application_controller_mock
### Gemfile
To add this gem to your Gemfile:
gem 'sixarm_ruby_application_controller_mock'
### Require
To require the gem in your code:
require 'sixarm_ruby_application_controller_mock'
## Example
require 'application_controller_mock'
class FoosController < ApplicationController
def whatever
session[:hello]=world
end
end
## Example with intialize hash
foo = ApplicationConroller.new(:params=>{:a=>:b,:c=>:d)})