Sha256: f94379145245f50d939e8ad72eb6876e33249de1ff82ab70c9294a2bb88560be

Contents?: true

Size: 387 Bytes

Versions: 2

Compression:

Stored size: 387 Bytes

Contents

require_relative '_test_helper'

describe Sashite::GAN::Actor do
  describe '#to_s' do
    before do
      @actor = Sashite::GAN::Actor.new 2,
        'bc096c4c7f48fc5c4c162555e4df98169e204aea',
        'top', 'xianqi', 'rook'
    end

    it 'returns the GAN of the actor' do
      @actor.to_gan.must_equal '2:bc096c4c7f48fc5c4c162555e4df98169e204aea:top:xianqi:rook'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sashite-gan-0.0.2 test/test_gan.rb
sashite-gan-0.0.1 test/test_gan.rb