Permalink
Browse files

Adding RSpec

  • Loading branch information...
1 parent c7686b6 commit 3d45f4e12a46f770a90c97aadd75be01c0efce89 @caius caius committed Sep 14, 2011
Showing with 16 additions and 0 deletions.
  1. +1 −0 .rspec
  2. +12 −0 Rakefile
  3. +2 −0 scamp.gemspec
  4. +1 −0 spec/spec_helper.rb
View
@@ -0,0 +1 @@
+--color
View
@@ -1 +1,13 @@
require 'bundler/gem_tasks'
+
+begin
+ require 'rspec/core/rake_task'
+ RSpec::Core::RakeTask.new(:spec)
+rescue LoadError => e
+ task "spec" do
+ puts "RSpec not loaded - make sure it's installed and you're using bundle exec"
+ exit 1
+ end
+end
+
+task :default => :spec
View
@@ -19,4 +19,6 @@ Gem::Specification.new do |s|
s.add_dependency('eventmachine', '~> 0.12.10')
s.add_dependency('yajl-ruby', '~> 0.8.3')
s.add_dependency('em-http-request', '~> 0.3.0')
+
+ s.add_development_dependency "rspec", "~> 2.6.0"
end
View
@@ -0,0 +1 @@
+require File.expand_path("../lib/scamp", File.dirname(__FILE__))

0 comments on commit 3d45f4e

Please sign in to comment.