Sha256: d22e6c3408c65b5ec1b1830c782a6d6d4083a75c1774873fda725b966e443068

Contents?: true

Size: 493 Bytes

Versions: 4

Compression:

Stored size: 493 Bytes

Contents

# encoding: utf-8

require 'spec_helper'
require 'battlenet'

describe Battlenet do
  let(:api) { Battlenet.new }

  before(:each) do
    Battlenet.locale = "es_ES"
  end

  after(:each) do
    Battlenet.locale = nil
  end

  it "localizes data" do
    VCR.use_cassette('character_mortawa_es') do
      character = api.character 'nazjatar', 'mortawa', :fields => 'talents'
      character["talents"].first["glyphs"]["prime"].first["name"].should == "Glifo de Golpe con runa"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
battlenet-1.2.0 spec/integration/locale_spec.rb
battlenet-1.1.1 spec/integration/locale_spec.rb
battlenet-1.1.0 spec/integration/locale_spec.rb
battlenet-1.0.0 spec/integration/locale_spec.rb