Let's have typos
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.document
.gitignore
.rspec
.rvmrc
Gemfile
Gemfile.lock
LICENSE.txt
Misspell.gemspec
README.md
Rakefile
VERSION

README.md

Misspell

You can have typos. We'll fix them for you at runtime.

Installation

  gem install misspell

Usage

class WTF
  include Misspell

  def attempt
    "wtf"
  end
end

describe WTF do
  let(:wtf) { WTF.new }

  it "does just as expected" do
    wtf.attempt.should == "wtf"
  end

  it "calls a method with distance 1" do
    wtf.attemp.should == "wtf"
  end

  it "calls another method with distance 1" do
    wtf.atempt.should == "wtf"
  end 
end