Sha256: 8b0a63c28c197b882ce35ee5d0bb8b78b3e256bc2967d2b7026da2670110b48d

Contents?: true

Size: 1.07 KB

Versions: 30

Compression:

Stored size: 1.07 KB

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

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

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
ibandit-0.11.6 spec/spec_helper.rb
ibandit-0.11.5 spec/spec_helper.rb
ibandit-0.11.4 spec/spec_helper.rb
ibandit-0.11.3 spec/spec_helper.rb
ibandit-0.11.2 spec/spec_helper.rb
ibandit-0.11.1 spec/spec_helper.rb
ibandit-0.11.0 spec/spec_helper.rb
ibandit-0.10.1 spec/spec_helper.rb
ibandit-0.10.0 spec/spec_helper.rb
ibandit-0.9.1 spec/spec_helper.rb
ibandit-0.9.0 spec/spec_helper.rb
ibandit-0.8.8 spec/spec_helper.rb
ibandit-0.8.7 spec/spec_helper.rb
ibandit-0.8.6 spec/spec_helper.rb
ibandit-0.8.5 spec/spec_helper.rb
ibandit-0.8.4 spec/spec_helper.rb
ibandit-0.8.3 spec/spec_helper.rb
ibandit-0.8.2 spec/spec_helper.rb
ibandit-0.8.1 spec/spec_helper.rb
ibandit-0.8.0 spec/spec_helper.rb