Permalink
Browse files

cleanup for rspec2

  • Loading branch information...
grosser committed Feb 12, 2011
1 parent 9d57387 commit 3dd64e368208d282c9d3a98e8b28aaa7e16c2382
Showing with 37 additions and 12 deletions.
  1. +1 −1 Gemfile
  2. +28 −0 Gemfile.lock
  3. +7 −6 Rakefile
  4. +1 −5 spec/spec_helper.rb
View
@@ -8,5 +8,5 @@ group :dev do
end
group :test do
- gem "rspec"
+ gem "rspec", "~>2"
end
View
@@ -0,0 +1,28 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ diff-lcs (1.1.2)
+ git (1.2.5)
+ jeweler (1.5.2)
+ bundler (~> 1.0.0)
+ git (>= 1.2.5)
+ rake
+ json (1.4.6)
+ rake (0.8.7)
+ rspec (2.5.0)
+ rspec-core (~> 2.5.0)
+ rspec-expectations (~> 2.5.0)
+ rspec-mocks (~> 2.5.0)
+ rspec-core (2.5.1)
+ rspec-expectations (2.5.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.5.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ jeweler
+ json
+ rake
+ rspec (~> 2)
View
@@ -1,21 +1,22 @@
task :default => :spec
-require 'spec/rake/spectask'
-Spec::Rake::SpecTask.new {|t| t.spec_opts = ['--color']}
+require "rspec/core/rake_task"
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.rspec_opts = '--backtrace --color'
+end
begin
require 'jeweler'
- project_name = 'rpx_now'
Jeweler::Tasks.new do |gem|
- gem.name = project_name
+ gem.name = 'rpx_now'
gem.summary = "Helper to simplify RPX Now user login/creation"
gem.email = "grosser.michael@gmail.com"
- gem.homepage = "http://github.com/grosser/#{project_name}"
+ gem.homepage = "http://github.com/grosser/#{gem.name}"
gem.authors = ["Michael Grosser"]
gem.add_dependency ['json_pure']
end
Jeweler::GemcutterTasks.new
rescue LoadError
- puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+ puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler"
end
View
@@ -1,7 +1,3 @@
-# ---- requirements
-require 'rubygems'
-require 'spec'
-
$LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
# ---- setup environment/plugin
@@ -10,7 +6,7 @@
API_VERSION = RPXNow.api_version
# ---- rspec
-Spec::Runner.configure do |config|
+RSpec.configure do |config|
config.before :each do
RPXNow.api_key = API_KEY
RPXNow.api_version = API_VERSION

0 comments on commit 3dd64e3

Please sign in to comment.