Permalink
Browse files

Froze Rspec 1.3.1 and made rake spec work

  • Loading branch information...
1 parent 4331cae commit 7a632efa455e9cbca10bf569a1b4e79a02c075d5 @ismasan committed Nov 3, 2010
Showing with 13 additions and 18 deletions.
  1. +2 −12 Gemfile.lock
  2. +3 −3 Rakefile
  3. +1 −1 jbundle.gemspec
  4. +7 −2 spec/spec_helper.rb
View
@@ -8,17 +8,7 @@ GEM
remote: http://rubygems.org/
specs:
closure-compiler (0.3.3)
- diff-lcs (1.1.2)
- rspec (2.0.1)
- rspec-core (~> 2.0.1)
- rspec-expectations (~> 2.0.1)
- rspec-mocks (~> 2.0.1)
- rspec-core (2.0.1)
- rspec-expectations (2.0.1)
- diff-lcs (>= 1.1.2)
- rspec-mocks (2.0.1)
- rspec-core (~> 2.0.1)
- rspec-expectations (~> 2.0.1)
+ rspec (1.3.1)
PLATFORMS
ruby
@@ -27,4 +17,4 @@ DEPENDENCIES
bundler (>= 1.0.0)
closure-compiler
jbundle!
- rspec
+ rspec (= 1.3.1)
View
@@ -2,9 +2,9 @@ require 'bundler'
Bundler::GemHelper.install_tasks
require 'spec/rake/spectask'
-Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.spec_files = FileList['spec/**/*_spec.rb']
+Spec::Rake::SpecTask.new(:spec) do |t|
+ t.spec_files = FileList["spec/**/*_spec.rb"]
+ t.spec_opts = %w{-f s -c -L mtime}
end
task :default => :spec
View
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
s.rubyforge_project = "jbundle"
s.add_development_dependency "bundler", ">= 1.0.0"
- s.add_development_dependency "rspec"
+ s.add_development_dependency "rspec", '1.3.1'
s.add_dependency 'closure-compiler'
s.files = `git ls-files`.split("\n")
View
@@ -5,5 +5,10 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'jbundle'
-require 'rspec'
-# require 'spec/autorun'
+begin
+ require 'spec'
+rescue LoadError
+ require 'rubygems'
+ gem 'rspec'
+ require 'spec'
+end

0 comments on commit 7a632ef

Please sign in to comment.