Sha256: 95f44f74ad5a3166db69b58ed15d520dddf667daccf38da7535712de1104df38

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

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

class Foo
  ___ "Ants!"
  def self.bar
    "blah"
  end

  ___ "Monkeys!"
  def baz
    "boop"
  end

  def qux x
    [x]
  end

  class << self
    ___ "Chins!"
    def frob x, y
      [x,y]
    end
  end
end

describe "Foo" do
  it "has the expected docstrings" do
    Foo.doc_for(:bar).should == "Ants!"
    Foo.doc_for(:baz).should == "Monkeys!"
    Foo.doc_for(:qux).should be_nil
    Foo.describe
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
duckstrings-0.0.3 spec/duckstrings_spec.rb