Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update Rakefile for rspec 2

  • Loading branch information...
commit acefedbb4ff8335e6de78f326ce1bf4bcd3a7481 1 parent 8225974
@patmaddox authored
View
0  spec/spec.opts → .rspec
File renamed without changes
View
33 Rakefile
@@ -18,30 +18,21 @@ rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
-require 'spec/rake/spectask'
-Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.spec_files = FileList['spec/**/*_spec.rb']
-end
-
-Spec::Rake::SpecTask.new(:rcov) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.pattern = 'spec/**/*_spec.rb'
- spec.rcov = true
-end
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec)
task :spec => :check_dependencies
-begin
- require 'cucumber/rake/task'
- Cucumber::Rake::Task.new(:features)
-
- task :features => :check_dependencies
-rescue LoadError
- task :features do
- abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
- end
-end
+#begin
+# require 'cucumber/rake/task'
+# Cucumber::Rake::Task.new(:features)
+#
+# task :features => :check_dependencies
+#rescue LoadError
+# task :features do
+# abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
+# end
+#end
task :default => [:spec, :features]
View
2  spec/giternal/app_spec.rb
@@ -4,7 +4,7 @@ module Giternal
describe App do
before(:each) do
@app = App.new("some_fake_dir")
- @mock_config = stub("config", :null_object => true)
+ @mock_config = stub("config").as_null_object
end
describe "loading the config file" do
View
1  spec/spec_helper.rb
@@ -6,6 +6,7 @@
end
$:.unshift(File.dirname(__FILE__) + '/../lib')
+$:.unshift(File.dirname(__FILE__) + '/..')
require 'giternal'
require 'fileutils'
require 'giternal_helper'
Please sign in to comment.
Something went wrong with that request. Please try again.