Sha256: 1103ba8311d1794c76e37f74a831887eb01334be3bfbaf11686914e7ea408307

Contents?: true

Size: 308 Bytes

Versions: 8

Compression:

Stored size: 308 Bytes

Contents

require_relative '../../lib/rgraph/node'

describe Node do
  subject { Node.new(name: "Lucas", id: '1', age: 20) }
  describe "#new" do
    its(:name) { should eq "Lucas" }
    its(:id) { should eq '1' }
    its(:age) { should eq 20 }
  end

  describe "#degree" do
    its(:degree) { should eq 0}
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rgraph-0.0.13 spec/rgraph/node_spec.rb
rgraph-0.0.12 spec/rgraph/node_spec.rb
rgraph-0.0.11 spec/rgraph/node_spec.rb
rgraph-0.0.10 spec/rgraph/node_spec.rb
rgraph-0.0.9 spec/rgraph/node_spec.rb
rgraph-0.0.8 spec/rgraph/node_spec.rb
rgraph-0.0.6 spec/rgraph/node_spec.rb
rgraph-0.0.5 spec/rgraph/node_spec.rb