Skip to content

Commit

Permalink
add guard and tweak a few things
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Oct 14, 2010
1 parent b571cf0 commit 3ac97c5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions Support/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ gem "rspec-expectations", :path => "../../rspec-expectations"
gem "rspec-mocks", :path => "../../rspec-mocks"

gem "ruby-debug"
gem "guard-rspec"
8 changes: 8 additions & 0 deletions Support/Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# A sample Guardfile
# More info at http://github.com/guard/guard#readme

guard 'rspec', :version => 2 do
watch('^spec/(.*)_spec.rb')
watch('^lib/(.*)\.rb') { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('^spec/spec_helper.rb') { "spec" }
end
7 changes: 2 additions & 5 deletions Support/spec/spec/mate/runner_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require 'spec_helper'
require File.dirname(__FILE__) + '/../../../lib/spec/mate/runner'
require File.expand_path('../../../../lib/spec/mate/runner', __FILE__)
require 'stringio'

describe Spec::Mate::Runner do
def set_env
root = File.expand_path(File.dirname(__FILE__) + '../../../../../../rspec-core')
root = File.expand_path('../../../../../../rspec-core', __FILE__)
ENV['TM_RSPEC_HOME'] = "#{root}"
ENV['TM_PROJECT_DIRECTORY'] = File.expand_path(File.dirname(__FILE__))
ENV['TM_FILEPATH'] = nil
Expand All @@ -29,9 +29,6 @@ def set_env
$".delete_if do |path|
path =~ /example_failing_spec\.rb/
end
# Spec::Runner.options.example_groups.delete_if do |example_group|
# example_group.description == "An example failing spec"
# end
end

describe "#run_file" do
Expand Down

0 comments on commit 3ac97c5

Please sign in to comment.