Sha256: 57b03426c48cc1d9a57e7a6282e5ad0a549f4c40ab0b9c909732b1c626d7ae20

Contents?: true

Size: 344 Bytes

Versions: 2

Compression:

Stored size: 344 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')

include Fathom::Distributions

class DemoEnforcedNameNode < Node
  include EnforcedName
end

describe EnforcedName do
  
  it "should ensure that we have a name as a UID if one is not provided" do
    n = DemoEnforcedNameNode.new
    n.name.should_not be_nil
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fathom-0.3.2 spec/fathom/node/node_extensions/enforced_name_spec.rb
fathom-0.3.1 spec/fathom/node/node_extensions/enforced_name_spec.rb