Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prevent staging loaderror with rescue in Rakefile

* Because guard-jasmine is in test/dev groups, guard rake task broke on staging
* Move guard rake task into begin rescue end block
* Source of Rakefile solution: https://devcenter.heroku.com/articles/ruby#rakefile
* Include test pattern in tddium.yml
  • Loading branch information...
commit 6117d8e5f801f242e084b719ddbdbf3e85277dcf 1 parent 991f5d1
@jessieay jessieay authored
Showing with 9 additions and 3 deletions.
  1. +6 −3 Rakefile
  2. +3 −0  config/tddium.yml
View
9 Rakefile
@@ -4,12 +4,15 @@
# available to Rake.
require File.expand_path('../config/application', __FILE__)
-require 'guard/jasmine/task'
-
-Guard::JasmineTask.new
SchedDo::Application.load_tasks
+begin
+ require 'guard/jasmine/task'
+ Guard::JasmineTask.new(:jasmine)
+rescue LoadError
+end
+
if defined?(RSpec)
desc 'Run factory specs'
RSpec::Core::RakeTask.new(:factory_specs) do |t|
View
3  config/tddium.yml
@@ -6,3 +6,6 @@
:command: rake guard:jasmine # Replace with whatever command you want to run
:invocation: single # must be 'single'
:output: exit-status # must be 'exit-status'
+ :test_pattern:
+ - spec/**_spec.rb
+ - spec/**.feature
Please sign in to comment.
Something went wrong with that request. Please try again.