Setting up testing stuff

Cássio Marques committed Mar 31, 2013
commit 2612d600b3f81ab68c866890c5f6e13e9e4789a7
Showing 5 changed files with 37 additions and 0 deletions
.rspec +2 -0
@@ @@ -0,0 +1,2 @@
+ --color
+ --format progress
Guardfile +11 -0
@@ @@ -0,0 +1,11 @@
+ # A sample Guardfile
+ # More info at https://github.com/guard/guard#readme
+
+ guard 'rspec' do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
+ end
+
spec/spec_helper.rb +17 -0
@@ @@ -0,0 +1,17 @@
+ # 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
+ # loaded once.
+ #
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
+ RSpec.configure do |config|
+ config.treat_symbols_as_metadata_keys_with_true_values = true
+ config.run_all_when_everything_filtered = true
+ config.filter_run :focus
+
+ # Run specs in random order to surface order dependencies. If you find an
+ # order dependency and want to debug it, you can fix the order by providing
+ # the seed, which is printed after each run.
+ # --seed 1234
+ config.order = 'random'
+ end
spec/zebra/epl/epl_spec.rb +5 -0
@@ @@ -0,0 +1,5 @@
+ # encoding: utf-8
+ require 'spec_helper'
+
+ describe Zebra::Epl do
+ end
zebra-epl.gemspec +2 -0
@@ @@ -23,4 +23,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
+ spec.add_development_dependency "guard"
+ spec.add_development_dependency "guard-rspec"
end