Sha256: c1d173d128af89b7ff734cfc2e31417eba717daf8012ff41967a4923b944297f

Contents?: true

Size: 476 Bytes

Versions: 3

Compression:

Stored size: 476 Bytes

Contents

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

describe "YARD::Handlers::Ruby::#{LEGACY_PARSER ? "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

3 entries across 3 versions & 1 rubygems

Version Path
deg-yard-0.8.7.4 spec/handlers/method_condition_handler_spec.rb
deg-yard-0.8.7.3 spec/handlers/method_condition_handler_spec.rb
deg-yard-0.8.7.1 spec/handlers/method_condition_handler_spec.rb