Skip to content
This repository
Browse code

+ Moved all to new rspec gem

  • Loading branch information...
commit f2266ed100562b838912d451c228b39557dde99f 1 parent 02c9ba7
Florian R. Hanke authored May 25, 2011
4  generators/Gemfile
... ...
@@ -0,0 +1,4 @@
  1
+source :rubygems
  2
+
  3
+gem 'rake'
  4
+gem 'rspec'
20  generators/Gemfile.lock
... ...
@@ -0,0 +1,20 @@
  1
+GEM
  2
+  remote: http://rubygems.org/
  3
+  specs:
  4
+    diff-lcs (1.1.2)
  5
+    rake (0.8.7)
  6
+    rspec (2.6.0)
  7
+      rspec-core (~> 2.6.0)
  8
+      rspec-expectations (~> 2.6.0)
  9
+      rspec-mocks (~> 2.6.0)
  10
+    rspec-core (2.6.3)
  11
+    rspec-expectations (2.6.0)
  12
+      diff-lcs (~> 1.1.2)
  13
+    rspec-mocks (2.6.0)
  14
+
  15
+PLATFORMS
  16
+  ruby
  17
+
  18
+DEPENDENCIES
  19
+  rake
  20
+  rspec
39  generators/Rakefile
... ...
@@ -1,34 +1,9 @@
1  
-require 'rake'
2  
-require 'rake/gempackagetask'
  1
+# Specs.
  2
+#
  3
+require 'rspec'
  4
+require 'rspec/core/rake_task'
3 5
 
4  
-task :default => :spec
  6
+desc "Run specs"
  7
+RSpec::Core::RakeTask.new :spec
5 8
 
6  
-require 'spec'
7  
-require 'spec/rake/spectask'
8  
-
9  
-spec_root = File.join(File.dirname(__FILE__), 'spec')
10  
-
11  
-desc "Run all specs in spec directory (excluding plugin specs)"
12  
-Spec::Rake::SpecTask.new(:spec) do |t|
13  
-  t.spec_opts = ['--options', "\"#{File.join(spec_root, 'spec.opts')}\""]
14  
-  t.spec_files = FileList[File.join(spec_root, '**', '*_spec.rb')]
15  
-end
16  
-namespace :spec do
17  
-
18  
-  desc "Run all specs in spec directory with RCov (excluding plugin specs)"
19  
-  Spec::Rake::SpecTask.new(:rcov) do |t|
20  
-    t.spec_opts = ['--options', "\"spec/spec.opts\""]
21  
-    t.spec_files = FileList['spec/**/*_spec.rb']
22  
-    t.rcov = true
23  
-    t.rcov_opts = lambda do
24  
-      IO.readlines("#{SEARCH_ROOT}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
25  
-    end
26  
-  end
27  
-
28  
-  desc "Print Specdoc for all specs (excluding plugin specs)"
29  
-  Spec::Rake::SpecTask.new(:doc) do |t|
30  
-    t.spec_opts = ["--format", "specdoc", "--dry-run"]
31  
-    t.spec_files = FileList['spec/**/*_spec.rb']
32  
-  end
33  
-
34  
-end
  9
+task :default => :spec
2  generators/spec/spec_helper.rb
@@ -2,5 +2,5 @@
2 2
 # from the project root directory.
3 3
 #
4 4
 require File.expand_path '../../lib/picky-generators', __FILE__
5  
-require 'spec'
  5
+require 'rspec'
6 6
 require 'benchmark'
6  live/Gemfile
... ...
@@ -0,0 +1,6 @@
  1
+source :rubygems
  2
+
  3
+gem 'rake'
  4
+gem 'rack'
  5
+gem 'rspec'
  6
+gem 'activesupport', :require => 'active_support/core_ext/object/to_query'
24  live/Gemfile.lock
... ...
@@ -0,0 +1,24 @@
  1
+GEM
  2
+  remote: http://rubygems.org/
  3
+  specs:
  4
+    activesupport (3.0.7)
  5
+    diff-lcs (1.1.2)
  6
+    rack (1.2.3)
  7
+    rake (0.8.7)
  8
+    rspec (2.6.0)
  9
+      rspec-core (~> 2.6.0)
  10
+      rspec-expectations (~> 2.6.0)
  11
+      rspec-mocks (~> 2.6.0)
  12
+    rspec-core (2.6.3)
  13
+    rspec-expectations (2.6.0)
  14
+      diff-lcs (~> 1.1.2)
  15
+    rspec-mocks (2.6.0)
  16
+
  17
+PLATFORMS
  18
+  ruby
  19
+
  20
+DEPENDENCIES
  21
+  activesupport
  22
+  rack
  23
+  rake
  24
+  rspec
1  server/.bundle/config
... ...
@@ -1,3 +1,2 @@
1 1
 --- 
2 2
 BUNDLE_WITHOUT: ""
3  
-BUNDLE_DISABLE_SHARED_GEMS: "1"
5  server/Gemfile
@@ -2,11 +2,12 @@ source :gemcutter
2 2
 
3 3
 # Gems required by Picky.
4 4
 #
  5
+gem 'rake'
5 6
 gem 'bundler',          '>=0.9.26'
6  
-gem 'activerecord',     '2.3.8', :require => 'active_record'
  7
+gem 'activerecord',     '2.3.8',   :require => 'active_record'
7 8
 gem 'rack',             '~> 1.2.1'
8 9
 gem 'rack-mount',       '~> 0.6.9'
9  
-gem 'yajl-ruby',                 :require => 'yajl'
  10
+gem 'yajl-ruby',                   :require => 'yajl'
10 11
 gem 'text',             '~> 0.2.0'
11 12
 gem 'rack_fast_escape', '2009.06.24'
12 13
 gem 'redis'
2  server/Gemfile.lock
@@ -13,6 +13,7 @@ GEM
13 13
       rack (>= 1.0.0)
14 14
     rack_fast_escape (2009.06.24)
15 15
       url_escape
  16
+    rake (0.8.7)
16 17
     redis (2.1.1)
17 18
     rest-client (1.6.1)
18 19
       mime-types (>= 1.16)
@@ -37,6 +38,7 @@ DEPENDENCIES
37 38
   rack (~> 1.2.1)
38 39
   rack-mount (~> 0.6.9)
39 40
   rack_fast_escape (= 2009.06.24)
  41
+  rake
40 42
   redis
41 43
   rest-client
42 44
   rspec (~> 1.3.0)
2  server/spec/lib/internals/index/files_spec.rb
@@ -3,7 +3,7 @@
3 3
 describe Internals::Index::Files do
4 4
 
5 5
   before(:each) do
6  
-    index         = stub :index, :name => :some_index
  6
+    index         = stub :index, :name => :some_index, :bundle_class => nil
7 7
     category      = Internals::Indexing::Category.new :some_category, index
8 8
     
9 9
     @files         = described_class.new :some_name, category
2  server/spec/lib/internals/index/redis_spec.rb
@@ -4,7 +4,7 @@
4 4
 
5 5
   context 'indexing' do
6 6
     let(:category) do
7  
-      index    = stub :index, :name => :some_index
  7
+      index    = stub :index, :name => :some_index, :bundle_class => nil
8 8
       category = Internals::Indexing::Category.new :some_category, index
9 9
     end
10 10
     let(:redis) { described_class.new :some_name, category }
2  server/spec/lib/internals/indexing/bundle/memory_partial_generation_speed_spec.rb
@@ -3,7 +3,7 @@
3 3
 describe Internals::Indexing::Bundle::Memory do
4 4
 
5 5
   before(:each) do
6  
-    @index            = stub :index, :name => :some_index
  6
+    @index            = stub :index, :name => :some_index, :bundle_class => nil
7 7
     @category         = Internals::Indexing::Category.new :some_category, @index
8 8
     
9 9
     @partial_strategy = Internals::Generators::Partial::Substring.new :from => 1
2  server/spec/lib/internals/indexing/bundle/memory_spec.rb
@@ -3,7 +3,7 @@
3 3
 describe Internals::Indexing::Bundle::Memory do
4 4
 
5 5
   before(:each) do
6  
-    @index = stub :index, :name => :some_index
  6
+    @index = stub :index, :name => :some_index, :bundle_class => nil
7 7
     @category       = Internals::Indexing::Category.new :some_category, @index
8 8
     
9 9
     @partial     = stub :partial
2  server/spec/lib/internals/indexing/bundle/redis_spec.rb
@@ -3,7 +3,7 @@
3 3
 describe Internals::Indexing::Bundle::Redis do
4 4
 
5 5
   before(:each) do
6  
-    @index       = stub :index, :name => :some_index
  6
+    @index       = stub :index, :name => :some_index, :bundle_class => nil
7 7
     @category    = Internals::Indexing::Category.new :some_category, @index
8 8
     
9 9
     @partial     = stub :partial
2  server/spec/lib/internals/indexing/category_spec.rb
@@ -3,7 +3,7 @@
3 3
 describe Internals::Indexing::Category do
4 4
   
5 5
   before(:each) do
6  
-    @index  = stub :index, :name => :some_index
  6
+    @index  = stub :index, :name => :some_index, :bundle_class => nil
7 7
     @source = stub :some_given_source, :key_format => nil
8 8
   end
9 9
   let(:category) { described_class.new(:some_category, @index, :source => @source).tap { |c| c.stub! :timed_exclaim } }

0 notes on commit f2266ed

Please sign in to comment.
Something went wrong with that request. Please try again.