Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Suppress warnings of RSpec-2.

  • Loading branch information...
commit 320d283f79d5bd0d983c14e052bbaa5e6cee61e5 1 parent 74920ab
@irohiroki authored
View
4 lib/templates/root/Rakefile.tt
@@ -13,7 +13,7 @@ require 'rake/rdoctask'
require 'rspec/core'
require 'rspec/core/rake_task'
-Rspec::Core::RakeTask.new(:spec)
+RSpec::Core::RakeTask.new(:spec)
<% else -%>
require 'rake/testtask'
@@ -33,4 +33,4 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
-end
+end
View
6 lib/templates/spec/spec_helper.rb
@@ -22,11 +22,11 @@
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
-Rspec.configure do |config|
- # Remove this line if you don't want Rspec's should and should_not
+RSpec.configure do |config|
+ # Remove this line if you don't want RSpec's should and should_not
# methods or matchers
require 'rspec/expectations'
- config.include Rspec::Matchers
+ config.include RSpec::Matchers
# == Mock Framework
config.mock_with :rspec
Please sign in to comment.
Something went wrong with that request. Please try again.