Sha256: df473b27bbbce73645537ffb830b7478a4df4ae45af46e24c0f5ef0d487f8c98

Contents?: true

Size: 542 Bytes

Versions: 30

Compression:

Stored size: 542 Bytes

Contents

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

describe YARD::Handlers::Processor do
  before do
    @proc = Handlers::Processor.new(OpenStruct.new(:parser_type => :ruby))
  end

  it "should start with public visibility" do
    @proc.visibility.should == :public
  end

  it "should start in instance scope" do
    @proc.scope.should == :instance
  end

  it "should start in root namespace" do
    @proc.namespace.should == Registry.root
  end

  it "should have a globals structure" do
    @proc.globals.should be_a(OpenStruct)
  end
end

Version data entries

30 entries across 21 versions & 3 rubygems

Version Path
challah-1.0.0.beta vendor/bundle/gems/yard-0.8.3/spec/handlers/processor_spec.rb
challah-0.9.1.beta.3 vendor/bundle/gems/yard-0.8.3/spec/handlers/processor_spec.rb
challah-0.9.1.beta vendor/bundle/gems/yard-0.8.3/spec/handlers/processor_spec.rb
challah-0.9.0 vendor/bundle/gems/yard-0.8.3/spec/handlers/processor_spec.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/yard-0.8.3/spec/handlers/processor_spec.rb
challah-rolls-0.2.0 vendor/bundle/gems/yard-0.8.2.1/spec/handlers/processor_spec.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/yard-0.8.2.1/spec/handlers/processor_spec.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/yard-0.8.2.1/spec/handlers/processor_spec.rb
challah-rolls-0.2.0 vendor/bundle/gems/yard-0.8.3/spec/handlers/processor_spec.rb
challah-0.8.3 vendor/bundle/gems/yard-0.8.3/spec/handlers/processor_spec.rb
challah-0.8.3 vendor/bundle/gems/yard-0.8.2.1/spec/handlers/processor_spec.rb
yard-0.8.3 spec/handlers/processor_spec.rb
challah-0.8.1 vendor/bundle/gems/yard-0.8.2.1/spec/handlers/processor_spec.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/yard-0.8.2.1/spec/handlers/processor_spec.rb
challah-rolls-0.1.0 vendor/bundle/gems/yard-0.8.2.1/spec/handlers/processor_spec.rb
challah-0.8.0.pre vendor/bundle/gems/yard-0.8.2.1/spec/handlers/processor_spec.rb
challah-0.7.1 vendor/bundle/gems/yard-0.8.2.1/spec/handlers/processor_spec.rb
challah-0.7.0 vendor/bundle/gems/yard-0.8.2.1/spec/handlers/processor_spec.rb
challah-0.7.0.pre2 vendor/bundle/gems/yard-0.8.2.1/spec/handlers/processor_spec.rb
challah-0.7.0.pre vendor/bundle/gems/yard-0.8.2.1/spec/handlers/processor_spec.rb