Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Changelog.md
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
reciper.gemspec

README.md

Reciper

Suppose you're writing a book containing some programming recipes. It would be great to have a test suite that ensures that your snippets really are really working. But why we should write a test suite if RSpec already does an awesome job doing it ?

Reciper is a collection of helpers that helps you write tests for your book recipes. It should be included on your described class and used whenever you need to copy files, copy line ranges, run tests, overwrite files, among other things.

Installation

On your Gemfile, just do this:

gem "reciper"

Run bundle install and you're ready to go!

Usage

Usage is really simple:

Recipe.new("My recipe name", "recipe_path/code", "ruby_app_template").execute do
  copy_file("file.rb", :as => "user.rb", :to => "app/models")
end
Something went wrong with that request. Please try again.