Sha256: e39964aeb32cec783b1c43a808b4456651542de8ae667ab1121e1ef65d4f51c1

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 Bytes

Contents

# Run `yardoc -e ../lib/yard-rspec example_code.rb`


class String
  # Pig latin of a String
  def pig_latin
    self[1..-1] + self[0] + "ay"
  end

  def something_else
  end
end

# 
# Specs
# 
describe String do
  describe '#pig_latin' do
    it "should be a pig!" do
      "hello".pig_latin.should == "ellohay"
     end

    it "should fail to be a pig!" do
      "hello".pig_latin.should == "hello"
    end
  end
end

describe 'Some Feature' do

  it 'should do cool things' do
    pending
  end

  it 'should do other things [String#pig_latin][String#something_else]' do
    pending
  end

  it 'should do neat things' do
    pending
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yard-different-rspec-0.1.1 example/example_code.rb
yard-different-rspec-0.1 example/example_code.rb