Sha256: f4bf966f736f2e831cad842188cab0d389e3816afa4b40fcca53619c065a8774
Contents?: true
Size: 681 Bytes
Versions: 1
Compression:
Stored size: 681 Bytes
Contents
require 'rubygems' require 'humanize' require 'rspec' module Humanize describe Configuration do after(:each) do Humanize.reset_config end describe "#default_locale" do it "default value is :en" do expect(Humanize.config.default_locale).to eq(:en) end it "value can be changed using a block" do Humanize.configure do |config| config.default_locale = :fr end expect(Humanize.config.default_locale).to eq(:fr) end it "value can be changed directly" do Humanize.config.default_locale = :fr expect(Humanize.config.default_locale).to eq(:fr) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
humanize-1.2.1 | spec/configuration_spec.rb |