1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Moved dependencies from the Gemfile to the gemspec

* The Gemfile now contains just the source and a single `gemspec` declaration
* See http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/

* Also had to break out the modules under integrations/rspec into their nested equivalents (load order?)
This commit is contained in:
Ryan McGeary 2011-01-31 16:25:43 -05:00
parent 4cce6ba131
commit 9c9580c55b
3 changed files with 21 additions and 11 deletions

View file

@ -1,10 +1,4 @@
source 'http://rubygems.org' source 'http://rubygems.org'
gem 'rails', '3.0.3' gemspec
gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'mocha'
gem 'rspec-rails'
gem 'ruby-debug'
gem 'cucumber'
gem "aruba"

View file

@ -9,15 +9,23 @@ end
if defined?(::ActionController) if defined?(::ActionController)
require 'shoulda/matchers/action_controller' require 'shoulda/matchers/action_controller'
module RSpec::Rails::ControllerExampleGroup module RSpec
include Shoulda::Matchers::ActionController module Rails
module ControllerExampleGroup
include Shoulda::Matchers::ActionController
end
end
end end
end end
if defined?(::ActionMailer) if defined?(::ActionMailer)
require 'shoulda/matchers/action_mailer' require 'shoulda/matchers/action_mailer'
module RSpec::Rails::MailerExampleGroup module RSpec
include Shoulda::Matchers::ActionMailer module Rails
module MailerExampleGroup
include Shoulda::Matchers::ActionMailer
end
end
end end
end end

View file

@ -19,6 +19,14 @@ Gem::Specification.new do |s|
s.summary = %q{Making tests easy on the fingers and eyes} s.summary = %q{Making tests easy on the fingers and eyes}
s.description = %q{Making tests easy on the fingers and eyes} s.description = %q{Making tests easy on the fingers and eyes}
s.add_development_dependency("rails", "3.0.3")
s.add_development_dependency("sqlite3-ruby", "~> 1.3.2")
s.add_development_dependency("mocha", "~> 0.9.10")
s.add_development_dependency("rspec-rails", "~> 2.3.0")
s.add_development_dependency("ruby-debug", "~> 0.10.4")
s.add_development_dependency("cucumber", "~> 0.10.0")
s.add_development_dependency("aruba", "~> 0.2.7")
if s.respond_to? :specification_version then if s.respond_to? :specification_version then
s.specification_version = 3 s.specification_version = 3
else else