SixArm.com » Ruby » I18N mock object for internationalization & localization
CSS JavaScript HTML 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
.rspec
.travis.yml
CHANGES.md
CONTRIBUTING.md
LICENSE.md
README.md
Rakefile
VERSION
sixarm_ruby_i18n_mock-1.0.4-sha512.txt
sixarm_ruby_i18n_mock-1.0.4.gem
sixarm_ruby_i18n_mock-1.0.5.gem
sixarm_ruby_i18n_mock.gemspec

README.md

Ruby »
I18n mock object for testing

Introduction

I18nMock is an internationalization localization mock object, good for testing Rails I18n classes.

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

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

Install

To install using a Gemfile, add this:

gem "sixarm_ruby_i18n_mock", ">= 1.0.5", "< 2"

To install using the command line, run this:

gem install sixarm_ruby_i18n_mock -v ">= 1.0.5, < 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_i18n_mock -v ">= 1.0.5, < 2" --trust-policy HighSecurity

To require the gem in your code:

require "sixarm_ruby_i18n_mock"

Example

I18n.locale="en-US"
I18n.locale => "en-US"
I18n.load_path="lib"
I18n.load_path => "lib"