Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

+ Moved all to new rspec gem

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