MethodMatch Build Status

Tiny gem for running specs for given file and line. It runs specs for given file based on line number and file name.

TDD workflow using Tmux, Pry, nviennot's irb-config, and method_match gem.

More info: method_match homepage

Convensions

Gem is based on convention that spec for:

class YourClass
  def your_method
  end
end

should be in your_class.rb in:

describe '#your_method' do
  #(...)
end

Installation

Add this line to your application's Gemfile:

gem 'method_match'

And then execute:

$ bundle

Or install it yourself as:

$ gem install method_match

Usage

Watch demo screencast for suggested workfolow.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Gem is released under MIT license.

About author

Tomasz Tokarski