Sha256: 9f9c7754c291b0375345e02edd4a34d1a5c599720e5b60cfd1bf621bc5f309d1

Contents?: true

Size: 460 Bytes

Versions: 18

Compression:

Stored size: 460 Bytes

Contents

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

describe "YARD::Handlers::Ruby::#{RUBY18 ? "Legacy::" : ""}MethodConditionHandler" do
  before(:all) { parse_file :method_condition_handler_001, __FILE__ }
  
  it "should not parse regular if blocks in methods" do
    Registry.at('#b').should be_nil
  end
  
  it "should parse if/unless blocks in the form X if COND" do
    Registry.at('#c').should_not be_nil
    Registry.at('#d').should_not be_nil
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
yard-0.6.4 spec/handlers/method_condition_handler_spec.rb
yard-0.6.3 spec/handlers/method_condition_handler_spec.rb
yard-0.6.2 spec/handlers/method_condition_handler_spec.rb
yard-0.6.1 spec/handlers/method_condition_handler_spec.rb
yard-0.6.0 spec/handlers/method_condition_handler_spec.rb
yard-0.5.8 spec/handlers/method_condition_handler_spec.rb
yard-0.5.7 spec/handlers/method_condition_handler_spec.rb
yard-0.5.6 spec/handlers/method_condition_handler_spec.rb
yard-0.5.5 spec/handlers/method_condition_handler_spec.rb
yard-0.5.4 spec/handlers/method_condition_handler_spec.rb
yard-0.5.3 spec/handlers/method_condition_handler_spec.rb
yard-0.5.2 spec/handlers/method_condition_handler_spec.rb
yard-0.5.1p1 spec/handlers/method_condition_handler_spec.rb
yard-0.5.1 spec/handlers/method_condition_handler_spec.rb
yard-0.5.0 spec/handlers/method_condition_handler_spec.rb
yard-0.4.0 spec/handlers/method_condition_handler_spec.rb
yard-0.2.3.5 spec/handlers/method_condition_handler_spec.rb
yard-0.2.3.4 spec/handlers/method_condition_handler_spec.rb