Sha256: 4af8beaaf2647eca0cdfedff2eaa0e3ad6900e3d716a868421c4869cf005be89

Contents?: true

Size: 246 Bytes

Versions: 4

Compression:

Stored size: 246 Bytes

Contents

RSpec::Matchers.define :have_edge do |edge|
  match do |actual|
    edges = actual.each_edge
    edge.each do |k,v|
      expect(edges.any? {|e| e.node_one == GraphViz.escape(k) && e.node_two == GraphViz.escape(v)}).to eq(true)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aws_security_viz-0.1.2.pre.alpha.pre.58 spec/support/matchers/graph.rb
aws_security_viz-0.1.1 spec/support/matchers/graph.rb
aws_security_viz-0.1.1.pre.alpha.pre.56 spec/support/matchers/graph.rb
aws_security_viz-0.1.0 spec/support/matchers/graph.rb