Sha256: f57d2a69886faef1b41417b24a77da9c6dd8c780d98989edcfa89a699b17445a

Contents?: true

Size: 1.52 KB

Versions: 10

Compression:

Stored size: 1.52 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

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

10 entries across 10 versions & 1 rubygems

Version Path
ibandit-0.11.28 spec/spec_helper.rb
ibandit-0.11.27 spec/spec_helper.rb
ibandit-0.11.26 spec/spec_helper.rb
ibandit-0.11.25 spec/spec_helper.rb
ibandit-0.11.24 spec/spec_helper.rb
ibandit-0.11.23 spec/spec_helper.rb
ibandit-0.11.22 spec/spec_helper.rb
ibandit-0.11.20 spec/spec_helper.rb
ibandit-0.11.19 spec/spec_helper.rb
ibandit-0.11.18 spec/spec_helper.rb