Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rspec/cucumber: update Gemfile, Rakefile, spec helper

  • Loading branch information...
commit 8c9e39dc026c3b1f0475f2c9ecb47a54e4b93923 1 parent b6b21cd
@nevans nevans authored
View
57 Gemfile.lock
@@ -1,39 +1,57 @@
PATH
remote: .
specs:
- resque-pool (0.0.12.0.alpha)
+ resque-pool (0.1.0.dev)
rake
- resque (~> 1.10)
+ resque (~> 1.13)
trollop (~> 1.16)
GEM
remote: http://rubygems.org/
specs:
- SystemTimer (1.2.1)
+ SystemTimer (1.2.2)
+ aruba (0.3.2)
+ childprocess (~> 0.1.6)
+ cucumber (~> 0.10.0)
+ rspec (~> 2.3.0)
+ builder (3.0.0)
+ childprocess (0.1.7)
+ ffi (~> 0.6.3)
+ cucumber (0.10.0)
+ builder (>= 2.1.2)
+ diff-lcs (~> 1.1.2)
+ gherkin (~> 2.3.2)
+ json (~> 1.4.6)
+ term-ansicolor (~> 1.0.5)
diff-lcs (1.1.2)
+ ffi (0.6.3)
+ rake (>= 0.8.7)
+ gherkin (2.3.3)
+ json (~> 1.4.6)
json (1.4.6)
rack (1.2.1)
rake (0.8.7)
redis (2.1.1)
- redis-namespace (0.8.0)
+ redis-namespace (0.10.0)
redis (< 3.0.0)
- resque (1.10.0)
+ resque (1.13.0)
json (~> 1.4.6)
- redis-namespace (~> 0.8.0)
+ redis-namespace (>= 0.10.0)
sinatra (>= 0.9.2)
vegas (~> 0.1.2)
- rspec (2.4.0)
- rspec-core (~> 2.4.0)
- rspec-expectations (~> 2.4.0)
- rspec-mocks (~> 2.4.0)
- rspec-core (2.4.0)
- rspec-expectations (2.4.0)
+ rspec (2.3.0)
+ rspec-core (~> 2.3.0)
+ rspec-expectations (~> 2.3.0)
+ rspec-mocks (~> 2.3.0)
+ rspec-core (2.3.1)
+ rspec-expectations (2.3.0)
diff-lcs (~> 1.1.2)
- rspec-mocks (2.4.0)
- sinatra (1.1.2)
+ rspec-mocks (2.3.0)
+ sinatra (1.1.3)
rack (~> 1.1)
- tilt (~> 1.2)
- tilt (1.2.1)
+ tilt (>= 1.2.2, < 2.0)
+ term-ansicolor (1.0.5)
+ tilt (1.2.2)
trollop (1.16.2)
vegas (0.1.8)
rack (>= 1.0.0)
@@ -43,9 +61,8 @@ PLATFORMS
DEPENDENCIES
SystemTimer
+ aruba (~> 0.3.2)
bundler (~> 1.0)
- rake
- resque (~> 1.10)
+ cucumber (~> 0.10.0)
resque-pool!
- rspec
- trollop (~> 1.16)
+ rspec (~> 2.3.0)
View
14 Rakefile
@@ -1,3 +1,17 @@
require 'bundler'
Bundler::GemHelper.install_tasks
+
+# for loading the example config file in config/resque-pool.yml
require 'resque/pool/tasks'
+
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.rspec_opts = ["-c", "-f progress"]
+end
+
+require 'cucumber/rake/task'
+Cucumber::Rake::Task.new(:features) do |c|
+ c.profile = "rake"
+end
+
+task :default => [:spec, :features]
View
6 resque-pool.gemspec
@@ -15,10 +15,12 @@ Gem::Specification.new do |s|
saving memory (w/REE) and monitoring their uptime
EOF
- s.add_dependency "resque", "~> 1.10"
+ s.add_dependency "resque", "~> 1.13"
s.add_dependency "trollop", "~> 1.16"
s.add_dependency "rake"
- s.add_development_dependency "rspec"
+ s.add_development_dependency "rspec", "~> 2.3.0"
+ s.add_development_dependency "cucumber", "~> 0.10.0"
+ s.add_development_dependency "aruba", "~> 0.3.2"
s.add_development_dependency "SystemTimer" # to silence redis gem's warning
s.add_development_dependency "bundler", "~> 1.0"
View
2  spec/resque_pool_spec.rb
@@ -1,6 +1,6 @@
require 'spec/spec_helper'
-Spec::Runner.configure do |config|
+RSpec.configure do |config|
config.after {
Object.send(:remove_const, :RAILS_ENV) if defined? RAILS_ENV
ENV.delete 'RACK_ENV'
View
2  spec/spec_helper.rb
@@ -1,3 +1,3 @@
-require 'spec'
+require 'rspec'
$LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
require 'resque/pool'
Please sign in to comment.
Something went wrong with that request. Please try again.