Sha256: 13bc8dfc92b9d1308fa0406d9f3573ca98ca67ddc1749b1cd90e309ac1159541
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 Bytes
Contents
# frozen_string_literal: true require "test_helper" class NodeTest < Minitest::Test def test_single_labels node = Redgraph::Node.new(label: "film") assert_equal(["film"], node.labels) assert_equal("film", node.label) end def test_multiple_labels node = Redgraph::Node.new(labels: ["film", "drama"]) assert_equal(["film", "drama"], node.labels) assert_equal("film", node.label) end def test_conflicting_labels assert_raises(Redgraph::Error) do node = Redgraph::Node.new(labels: ["film", "drama"], label: "film") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redgraph-0.2.2 | test/node_test.rb |