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

Currently before running unit tests we are getting auto-required before rspec-rails is getting required. This is bad because we need to wait until rspec-rails is loaded before injecting Shoulda::Matchers::* into the current RSpec context, otherwise matchers that clash with rspec-rails (such as `render_template` will get overridden). This is happening when creating and booting the Rails application. Bundler will auto-require any gems in the Gemfile. One of these gems is ourselves (via the `gemspec` line). Since there aren't any dependencies in the gemspec, there's no need for us to be in the Gemfile. This means that we no longer have to explicit `include` Rails ActionController template assertions in the tests for `render_template` as they should get included automatically for us.
28 lines
753 B
Ruby
28 lines
753 B
Ruby
source 'https://rubygems.org'
|
|
|
|
gem 'appraisal', '~> 1.0'
|
|
gem 'aruba'
|
|
gem 'bourne', '~> 1.3'
|
|
gem 'bundler', '~> 1.1'
|
|
gem 'pry'
|
|
gem 'rails', '~> 3.0'
|
|
gem 'rake', '>= 0.9.2'
|
|
gem 'rspec-rails', '>= 2.99.0'
|
|
|
|
# YARD
|
|
gem 'yard'
|
|
gem 'redcarpet'
|
|
gem 'pygments.rb'
|
|
gem 'watchr'
|
|
|
|
# For test Rails application
|
|
gem 'shoulda-context', '~> 1.2.0'
|
|
gem 'sqlite3', :platform => :ruby
|
|
|
|
# Can't wrap in platform :jruby do...end block because appraisal doesn't
|
|
# support it
|
|
gem 'activerecord-jdbc-adapter', :platform => :jruby
|
|
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
|
gem 'jdbc-sqlite3', :platform => :jruby
|
|
gem 'jruby-openssl', :platform => :jruby
|
|
gem 'therubyrhino', :platform => :jruby
|