Sha256: e1f88e87ea40e916aaa73a9e2757aad19a3d4023ffe3220965aea2dae83b7b95

Contents?: true

Size: 1.55 KB

Versions: 25

Compression:

Stored size: 1.55 KB

Contents

# frozen_string_literal: true

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

RSpec.shared_context "locale nl", locale: :nl do
  around { |example| I18n.with_locale(:nl) { example.run } }
end

RSpec.shared_context "locale nb", locale: :nb do
  around { |example| I18n.with_locale(:nb) { example.run } }
end

RSpec.shared_context "locale sl", locale: :sl do
  around { |example| I18n.with_locale(:sl) { example.run } }
end

RSpec.shared_context "locale sv", locale: :sv do
  around { |example| I18n.with_locale(:sv) { example.run } }
end

RSpec.shared_context "locale da", locale: :da do
  around { |example| I18n.with_locale(:da) { example.run } }
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
ibandit-1.14.0 spec/spec_helper.rb
ibandit-1.13.0 spec/spec_helper.rb
ibandit-1.12.0 spec/spec_helper.rb
ibandit-1.11.0 spec/spec_helper.rb
ibandit-1.10.0 spec/spec_helper.rb
ibandit-1.9.0 spec/spec_helper.rb
ibandit-1.8.1 spec/spec_helper.rb
ibandit-1.8.0 spec/spec_helper.rb
ibandit-1.7.1 spec/spec_helper.rb
ibandit-1.7.0 spec/spec_helper.rb
ibandit-1.6.1 spec/spec_helper.rb
ibandit-1.6.0 spec/spec_helper.rb
ibandit-1.5.0 spec/spec_helper.rb
ibandit-1.4.1 spec/spec_helper.rb
ibandit-1.4.0 spec/spec_helper.rb
ibandit-1.3.0 spec/spec_helper.rb
ibandit-1.2.3 spec/spec_helper.rb
ibandit-1.2.2 spec/spec_helper.rb
ibandit-1.2.0 spec/spec_helper.rb
ibandit-1.2.1 spec/spec_helper.rb