Sha256: 22aeafd8465086da4848250bf277296867765e410b7cef993a43a14fcb115b28

Contents?: true

Size: 473 Bytes

Versions: 6

Compression:

Stored size: 473 Bytes

Contents

describe YARD::Generators::Helpers::BaseHelper, "#linkify" do
  include YARD::Generators::Helpers::BaseHelper

  it "should pass off to #link_object if argument is an object" do
    obj = CodeObjects::NamespaceObject.new(nil, :YARD)
    should_receive(:link_object).with(obj)
    linkify obj
  end
  
  it "should pass off to #link_url if argument is recognized as a URL" do
    url = "http://yard.soen.ca/"
    should_receive(:link_url).with(url)
    linkify url
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yard-0.2.3.5 spec/generators/helpers/base_helper_spec.rb
yard-0.2.3.4 spec/generators/helpers/base_helper_spec.rb
yard-0.2.3.2 spec/generators/helpers/base_helper_spec.rb
yard-0.2.3.3 spec/generators/helpers/base_helper_spec.rb
yard-0.2.2 spec/generators/helpers/base_helper_spec.rb
yard-0.2.3 spec/generators/helpers/base_helper_spec.rb