MethodMatch
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
Gem is released under MIT license.