Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Ready to merge this? #1

Merged
merged 1 commit into from

2 participants

@jwoertink
Owner

I see testing stuff added...

@jwoertink jwoertink merged commit aae295e into jwoertink:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 12, 2012
  1. @russ

    Rspec setup.

    russ authored
This page is out of date. Refresh to see the latest.
Showing with 24 additions and 2 deletions.
  1. +15 −2 Rakefile
  2. +9 −0 spec/spec_helper.rb
View
17 Rakefile
@@ -1,2 +1,15 @@
-#!/usr/bin/env rake
-require "bundler/gem_tasks"
+require 'bundler/gem_tasks'
+require 'rake'
+require 'rspec/core/rake_task'
+
+namespace :spec do
+ RSpec::Core::RakeTask.new(:normal) do |t|
+ t.pattern ='spec/**/*_spec.rb'
+ t.rcov = false
+ end
+end
+
+desc 'RSpec tests'
+task 'spec' => 'spec:normal'
+
+task 'default' => 'spec'
View
9 spec/spec_helper.rb
@@ -0,0 +1,9 @@
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+
+require 'tourets'
+require 'rspec'
+
+RSpec.configure do |c|
+ c.mock_with(:rspec)
+end
Something went wrong with that request. Please try again.