Sha256: b080a2d56730caf07f9447a69eaac85436726989443fabe9eafafcf6ae743c71
Contents?: true
Size: 981 Bytes
Versions: 2
Compression:
Stored size: 981 Bytes
Contents
require 'ibandit' require 'rspec/its' require 'json' RSpec.configure do |config| config.mock_with(:rspec) { |mocks| mocks.verify_partial_doubles = true } config.raise_errors_for_deprecations! end def json_fixture(filename) JSON.parse(File.read("spec/fixtures/#{filename}.json")) end RSpec.shared_context 'locale en', locale: :en do around { |example| I18n.with_locale(:en) { example.run } } end RSpec.shared_context 'locale fr', locale: :fr do around { |example| I18n.with_locale(:fr) { example.run } } end RSpec.shared_context 'locale de', locale: :de do around { |example| I18n.with_locale(:de) { example.run } } end RSpec.shared_context 'locale pt', locale: :pt do around { |example| I18n.with_locale(:pt) { example.run } } end RSpec.shared_context 'locale es', locale: :es do around { |example| I18n.with_locale(:es) { example.run } } end RSpec.shared_context 'locale it', locale: :it do around { |example| I18n.with_locale(:it) { example.run } } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ibandit-0.4.4 | spec/spec_helper.rb |
ibandit-0.4.3 | spec/spec_helper.rb |