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

Switched to allowing a more canonical require statement

require "shoulda/matchers"  # canonical

-vs-

    require "shoulda-matchers"  # still allowed

See comments of http://blog.segment7.net/2010/11/15/how-to-name-gems
This commit is contained in:
Ryan McGeary 2011-01-31 16:30:31 -05:00
parent 9c9580c55b
commit b39fba0bed
2 changed files with 8 additions and 8 deletions

View file

@ -1,8 +1 @@
require 'shoulda/matchers/version' require 'shoulda/matchers'
if defined?(RSpec)
require 'shoulda/matchers/integrations/rspec'
else
require 'shoulda/matchers/integrations/test_unit'
end

7
lib/shoulda/matchers.rb Normal file
View file

@ -0,0 +1,7 @@
require 'shoulda/matchers/version'
if defined?(RSpec)
require 'shoulda/matchers/integrations/rspec'
else
require 'shoulda/matchers/integrations/test_unit'
end