shoulda 2.9.0 → 2.9.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/shoulda.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Shoulda
2
- VERSION = "2.9.0"
2
+ VERSION = "2.9.1"
3
3
  end
4
4
 
5
5
  if defined? Spec
data/lib/shoulda/rspec.rb CHANGED
@@ -1,5 +1,9 @@
1
1
  require 'shoulda/active_record/matchers'
2
2
 
3
- Spec::Runner.configure do |config|
4
- config.include Shoulda::ActiveRecord::Matchers, :type => :model
3
+ module Spec
4
+ module Rails
5
+ module Matchers
6
+ include Shoulda::ActiveRecord::Matchers
7
+ end
8
+ end
5
9
  end
data/rails/init.rb CHANGED
@@ -1 +1,7 @@
1
- require 'shoulda/rails' if RAILS_ENV == 'test'
1
+ if RAILS_ENV == 'test'
2
+ if defined? Spec
3
+ require 'shoulda/rspec'
4
+ else
5
+ require 'shoulda/rails'
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoulda
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.0
4
+ version: 2.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tammer Saleh
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-03 00:00:00 -05:00
12
+ date: 2009-02-04 00:00:00 -05:00
13
13
  default_executable: convert_to_should_syntax
14
14
  dependencies: []
15
15