Sha256: a34c73947090c6c7a4e249e3796a47a18dc86f2de245ef82226cca76ac1eb3f6

Contents?: true

Size: 704 Bytes

Versions: 1

Compression:

Stored size: 704 Bytes

Contents

require 'spec_helper'
require 'xiv_lodestone'

describe XIVLodestone::Character do
  let(:character) { XIVLodestone::Character.new(name: "Benpi Kancho", server: "Tonberry") }

  it 'Character profile found' do
    expect(character.nil?).to eq(false)
    expect(character.first_name).to eq("Benpi")
    expect(character.last_name).to eq("Kancho")
    expect(character.mounts.is_a?(Array)).to be
    expect(character.minions.is_a?(Array)).to be
  end

  it 'Randomly opens a profile' do
    letter = (0...1).map { (65 + rand(26)).chr }.join
    random = XIVLodestone::Character.new(name: letter)
    expect(random.nil?).to eq(false)
    expect(random.name.nil?).to eq(false)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xiv_lodestone-0.0.5 spec/xiv_lodestone_spec.rb