lib/shoulda.rb in thoughtbot-shoulda-2.0.6 vs lib/shoulda.rb in thoughtbot-shoulda-2.9.0
- old
+ new
@@ -1,17 +1,9 @@
-require 'shoulda/context'
-require 'shoulda/proc_extensions'
-require 'shoulda/assertions'
-require 'shoulda/macros'
-require 'shoulda/helpers'
-require 'shoulda/rails' if defined? RAILS_ROOT
+module Shoulda
+ VERSION = "2.9.0"
+end
-module Test # :nodoc: all
- module Unit
- class TestCase
- extend Thoughtbot::Shoulda
- include ThoughtBot::Shoulda::Assertions
- extend ThoughtBot::Shoulda::Macros
- include ThoughtBot::Shoulda::Helpers
- end
- end
+if defined? Spec
+ require 'shoulda/rspec'
+else
+ require 'shoulda/test_unit'
end