Sha256: 442e774430d3fafb13cb4c84d8bf3e2dafdd7f027767b66f93df8123171739ec

Contents?: true

Size: 352 Bytes

Versions: 4

Compression:

Stored size: 352 Bytes

Contents

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

include Fathom::Distributions

class DemoEnforcedNameNode < Fathom::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

4 entries across 4 versions & 1 rubygems

Version Path
fathom-0.3.7 spec/fathom/node/node_extensions/enforced_name_spec.rb
fathom-0.3.6 spec/fathom/node/node_extensions/enforced_name_spec.rb
fathom-0.3.4 spec/fathom/node/node_extensions/enforced_name_spec.rb
fathom-0.3.3 spec/fathom/node/node_extensions/enforced_name_spec.rb