Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Run specs from rake

  • Loading branch information...
commit 74ff0bee1d2a363502dfb14abbd5292833168f43 1 parent 6982f40
@jwo jwo authored
Showing with 39 additions and 0 deletions.
  1. +4 −0 Gemfile
  2. +20 −0 Gemfile.lock
  3. +14 −0 rakefile.rb
  4. +1 −0  zoo_spec.rb
View
4 Gemfile
@@ -0,0 +1,4 @@
+source 'http://rubygems.org'
+
+gem 'rake'
+gem 'rspec'
View
20 Gemfile.lock
@@ -0,0 +1,20 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ diff-lcs (1.1.3)
+ rake (0.9.2.2)
+ rspec (2.9.0)
+ rspec-core (~> 2.9.0)
+ rspec-expectations (~> 2.9.0)
+ rspec-mocks (~> 2.9.0)
+ rspec-core (2.9.0)
+ rspec-expectations (2.9.1)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.9.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ rake
+ rspec
View
14 rakefile.rb
@@ -0,0 +1,14 @@
+require "rubygems"
+require "bundler/setup"
+
+require 'rspec/core/rake_task'
+
+desc 'Default: run specs.'
+task :default => :spec
+
+desc "Run specs"
+RSpec::Core::RakeTask.new do |t|
+ t.pattern = "**/*_spec.rb" # don't need this, it's default.
+ # Put spec opts in a file named .rspec in root
+end
+
View
1  zoo_spec.rb
@@ -1,5 +1,6 @@
# Zoo spec file
require "./zoo"
+require "rspec"
describe Panda do
Please sign in to comment.
Something went wrong with that request. Please try again.