SixArm.com » Ruby » ActionController mock object for testing Rails.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
coverage
doc
lib
test
.codeclimate.yml
.document
.gemtest
.gitattributes
.gitignore
.rspec
.travis.yml
CHANGES.md
CONTRIBUTING.md
Gemfile
Gemfile.lock
LICENSE.md
README.md
Rakefile
VERSION
sixarm_ruby_action_controller_mock-1.0.8-sha512.txt
sixarm_ruby_action_controller_mock-1.0.8.gem
sixarm_ruby_action_controller_mock.gemspec

README.md

SixArm.com » Ruby »
ActionController mock object for testing Rails

Code Climate Build Status

Introduction

ActionController mock object that we use to test our various gems for Rails.

This provides the basics that we need; you probably won't ever need to use this gem.

For docs go to http://sixarm.com/sixarm_ruby_action_controller_mock/doc

Want to help? We're happy to get pull requests.

Install

To install using a Gemfile, add this:

gem "sixarm_ruby_action_controller_mock", ">= 1.0.8", "< 2"

To install using the command line, run this:

gem install sixarm_ruby_action_controller_mock -v ">= 1.0.8, < 2"

To install using the command line with high security, run this:

wget http://sixarm.com/sixarm.pem
gem cert --add sixarm.pem && gem sources --add http://sixarm.com
gem install sixarm_ruby_action_controller_mock -v ">= 1.0.8, < 2" --trust-policy HighSecurity

To require the gem in your code:

require "sixarm_ruby_action_controller_mock"

Example

require "sixarm_ruby_action_controller_mock"
class ApplicationController < ActionController::Base
  before_filter :foo  # mock
  after_filter :bar   # mock
end