0.0
No commit activity in last 3 years
No release in over 3 years
Guard plugin for Jaspec
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0

Runtime

~> 2.0
~> 0.2
 Project Readme

Guard::Jaspec Gem Version

Guard::Jaspec supports the automatic running of Jaspec JavaScript specs.

Installation

Please ensure you have Guard installed before you continue.

Add the following to your application's Gemfile:

group :development do
  gem 'guard-jaspec'
end

And then execute:

$ bundle

Add Guard::Jaspec to your Guardfile by running:

$ guard init jaspec

Usage

Please refer to the Guard usage doc

Example Guardfile

This is the default Guardfile configuration, and it assumes a Rails-like asset structure. If your JavaScript source files or specs are in different directories, you'll want to modify this. This configuration likewise assumes that you're using the same language (JavaScript or CoffeeScript) between your source files and specs.

guard :jaspec do
  watch(%r{^spec/javascripts/(.\*)Spec\.(js|coffee)$})
  watch(%r{^app/assets/javascripts/(.\*)\.(js|coffee)$}) { |m| "spec/javascripts/#{m[1]}Spec.#{m[2]}" }
end

Options

List of available options

all_on_start: false   # run all specs on startup, default: true

Contributing

  1. Fork it ( https://github.com/gisikw/guard-jaspec/fork )
  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 a new Pull Request