Skip to content

Commit

Permalink
Move rake tasks out of the user's app and into RSpec::Rails itself
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlhuda committed Apr 29, 2010
1 parent 937117f commit 416bb95
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
9 changes: 9 additions & 0 deletions lib/rspec-rails.rb
@@ -0,0 +1,9 @@
module RSpec
module Rails
class Railtie < ::Rails::Railtie
rake_tasks do
load "rspec/rails/tasks/rspec.rake"
end
end
end
end
@@ -1,7 +1,7 @@
begin
require 'rspec/core'
require 'rspec/core/rake_task'
rescue MissingSourceFile
rescue MissingSourceFile
module Rspec
module Core
class RakeTask
Expand Down Expand Up @@ -66,4 +66,3 @@ namespace :spec do
::CodeStatistics::TEST_TYPES << "Request specs" if File.exist?('spec/requests')
end
end

10 changes: 9 additions & 1 deletion rspec-rails.gemspec
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |s|

s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
s.authors = ["David Chelimsky", "Chad Humphries"]
s.date = %q{2010-04-27}
s.date = %q{2010-04-29}
s.description = %q{Rspec-2 for Rails-3}
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
s.extra_rdoc_files = [
Expand All @@ -21,8 +21,12 @@ Gem::Specification.new do |s|
"README.markdown",
"Rakefile",
"VERSION",
"autotest/discover.rb",
"cucumber.yml",
"example_app_template.rb",
"features/controller_specs/readers.feature",
"features/matchers/new_record_matcher.feature",
"features/model_specs/errors_on.feature",
"features/model_specs/transactional_examples.feature",
"features/step_definitions/model_steps.rb",
"features/support/env.rb",
Expand Down Expand Up @@ -66,6 +70,8 @@ Gem::Specification.new do |s|
"lib/rspec/rails/example/mailer_example_group.rb",
"lib/rspec/rails/example/request_example_group.rb",
"lib/rspec/rails/example/view_example_group.rb",
"lib/rspec/rails/extensions.rb",
"lib/rspec/rails/extensions/active_record/base.rb",
"lib/rspec/rails/matchers.rb",
"lib/rspec/rails/mocks.rb",
"lib/rspec/rails/monkey.rb",
Expand All @@ -75,6 +81,7 @@ Gem::Specification.new do |s|
"lib/rspec/rails/version.rb",
"rspec-rails.gemspec",
"spec/rspec/rails/matchers/be_a_new_spec.rb",
"spec/rspec/rails/matchers/errors_on_spec.rb",
"spec/rspec/rails/matchers/redirect_to_spec.rb",
"spec/rspec/rails/matchers/render_template_spec.rb",
"spec/rspec/rails/mocks/ar_classes.rb",
Expand Down Expand Up @@ -107,6 +114,7 @@ Gem::Specification.new do |s|
s.summary = %q{rspec-rails-2.0.0.beta.8}
s.test_files = [
"spec/rspec/rails/matchers/be_a_new_spec.rb",
"spec/rspec/rails/matchers/errors_on_spec.rb",
"spec/rspec/rails/matchers/redirect_to_spec.rb",
"spec/rspec/rails/matchers/render_template_spec.rb",
"spec/rspec/rails/mocks/ar_classes.rb",
Expand Down

0 comments on commit 416bb95

Please sign in to comment.