Sha256: 3358588cbd4bd5c06ba1a95bd5495e8d0f3d7e2b87fb07d8f60a994a775cd65b

Contents?: true

Size: 454 Bytes

Versions: 3

Compression:

Stored size: 454 Bytes

Contents

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

describe "YARD::Handlers::Ruby::#{RUBY18 ? "Legacy::" : ""}MethodConditionHandler" do
  before { 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

3 entries across 3 versions & 1 rubygems

Version Path
yard-0.2.3.2 spec/handlers/method_condition_handler_spec.rb
yard-0.2.3.3 spec/handlers/method_condition_handler_spec.rb
yard-0.2.3 spec/handlers/method_condition_handler_spec.rb