Permalink
Browse files

Remove rspec.rake.

No need to rspec task, just run bundle exec rspec
  • Loading branch information...
1 parent e45b7c8 commit ea5415602726847d5e779e2d122d131bee0028d7 @ywen committed Oct 19, 2012
Showing with 1 addition and 19 deletions.
  1. +1 −1 gem_skeleton.gemspec
  2. +0 −1 lib/gem_skeleton/cli.rb
  3. +0 −17 lib/gem_skeleton/templates/newgem/tasks/rspec.rake.tt
View
@@ -11,6 +11,6 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = "gem_skeleton"
gem.require_paths = ["lib"]
- gem.version = "0.1.0"
+ gem.version = "0.1.1"
gem.add_runtime_dependency(%q<thor>)
end
View
@@ -50,7 +50,6 @@ def make(name)
template(File.join("newgem/newgem.gemspec.tt"), File.join(target, "#{name}.gemspec"), opts)
template(File.join("newgem/lib/newgem.rb.tt"), File.join(target, "lib/#{name}.rb"), opts)
template(File.join("newgem/spec/spec_helper.rb.tt"), File.join(target, "spec/spec_helper.rb"), opts)
- template(File.join("newgem/tasks/rspec.rake.tt"), File.join(target, "tasks/rspec.rake"), opts)
template(File.join("newgem/tasks/ci.rake.tt"), File.join(target, "tasks/ci.rake"), opts)
if options[:bin]
template(File.join("newgem/bin/newgem.tt"), File.join(target, 'bin', name), opts)
@@ -1,17 +0,0 @@
-begin
- require 'rspec/core'
- require 'rspec/core/rake_task'
-
- spec_prereq = :noop
- task :noop do
- end
-
- desc "Run all specs in spec directory (excluding plugin specs)"
- RSpec::Core::RakeTask.new(:spec => spec_prereq) do |t|
- t.rspec_opts = ["--format", "documentation"]
- t.pattern = "spec/**/*_spec.rb"
- end
-
-rescue LoadError => e
- p e
-end

0 comments on commit ea54156

Please sign in to comment.