extra_assertions 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/rails/init.rb +11 -0
  2. metadata +4 -3
@@ -0,0 +1,11 @@
1
+ require File.join(File.expand_path(File.dirname(__FILE__)), '../lib/extra_assertions')
2
+ require 'active_support/test_case'
3
+
4
+ # do this so we don't get deprecation warnings
5
+ ActionController::Assertions::ModelAssertions.send(:remove_method, :assert_valid)
6
+
7
+ [ActiveSupport::TestCase, ActionController::TestCase].each do |c|
8
+ c.instance_eval do
9
+ include(ExtraAssertions)
10
+ end
11
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extra_assertions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Weiss
@@ -31,6 +31,7 @@ extra_rdoc_files: []
31
31
  files:
32
32
  - lib/extra_assertions.rb
33
33
  - test/extra_assertions_test.rb
34
+ - rails/init.rb
34
35
  has_rdoc: true
35
36
  homepage: http://github.com/justinweiss/extra_assertions
36
37
  licenses: []