Sha256: dc2fdd7d45bec57fde5c9a96115435b1c8bac8e523024109178dd4035fea47c1

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 Bytes

Contents

require 'spec_helper'

module SGF
  RSpec.describe Variation do
    subject { Variation.new }
    it 'begins with a Node' do
      expect(subject.root).to be_an_instance_of Node
    end

    it "accepts more nodes" do
      subject.append Node.new
      expect(subject.size).to eq 2
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
SgfParser-3.0.1 spec/variation_spec.rb
SgfParser-3.0.0 spec/variation_spec.rb