From 0fa9110f33685694301062f1345d9679e1c0210c Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Tue, 25 Dec 2012 15:20:49 -0500 Subject: [PATCH] rspec integration cleanup --- Guardfile | 1 + spec/lib/regexper_spec.rb | 1 - spec/spec_helper.rb | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Guardfile b/Guardfile index 6f24ee2..4eca1f9 100644 --- a/Guardfile +++ b/Guardfile @@ -10,6 +10,7 @@ end guard 'rspec' do watch(%r{^spec/.+_spec\.rb$}) watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } + watch(%r{^lib/(.+)\.treetop$}) { |m| "spec" } watch('spec/spec_helper.rb') { "spec" } end diff --git a/spec/lib/regexper_spec.rb b/spec/lib/regexper_spec.rb index 5ff48ba..a5f3335 100644 --- a/spec/lib/regexper_spec.rb +++ b/spec/lib/regexper_spec.rb @@ -1,5 +1,4 @@ require 'spec_helper' -require 'regexper' describe Regexper do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index dbc4f1a..daebe5e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,5 @@ +require 'regexper' + # This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # Require this file using `require "spec_helper"` to ensure that it is only