0.0
No commit activity in last 3 years
No release in over 3 years
Guard::Alfred automatically creates javascript fixtures on file changes'
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0
>= 2.3

Runtime

 Project Readme

Guard Alfred

Gem Version Build Status Coverage Status Code Climate Dependency Status

Automatically creates fixture files of your controller action responses under several conditions.

Installation

Add the gem to your Gemfile (inside development group):

 gem 'guard-alfred', :require => false

Add guard definition to your Guardfile by running this command:

$ guard init alfred

Usage

Please read Guard usage doc.

Guardfile

Make sure to put this block on top of your Guardfile so all fixtures are created before running tests.

guard :alfred do
  watch(%r{^app/controllers/(.+)\.rb$}) { |m| "spec/alfreds/#{m[1]}.rb" }
  watch(%r{^spec/alfreds/(.+)\.rb$})    { |m| "spec/alfreds/#{m[1]}.rb" }
end

Supported Ruby Versions

This library is tested against Travis and aims to support the following Ruby implementations:

  • Ruby 1.9.3
  • Ruby 2.0.0
  • Ruby 2.1.1

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

Copyright

Copyright (c) 2014 Johan van Zonneveld. See LICENSE for details.