technicalpickles-nice_assert_select 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,11 +26,11 @@ nice_assert_select provides helpers for making the calls more rubyish and more r
26
26
  form_method_field (this is the hidden field Rails uses for determing what HTTP method to use, since browsers are generally limited to GET and POST)
27
27
  submit_button
28
28
 
29
- It is by no means comprehensive, as it was extracted from a project which only needed this selectors.
29
+ It is by no means comprehensive, as it was extracted from a project which only needed these assert_selects.
30
30
 
31
31
  == Installing
32
32
 
33
- For Rails 2.1 and on, add this to your +config/environment.rb+:
33
+ For Rails 2.1 and on, add this to your config/environment.rb:
34
34
 
35
35
  config.gem 'technicalpickles-nice_assert_select', :lib => 'nice_assert_select', :source => 'http://gems.github.com'
36
36
 
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :major: 0
4
4
  :minor: 1
@@ -30,7 +30,12 @@ module NiceAssertSelect
30
30
  end
31
31
  end
32
32
 
33
- ActionController::TestCase.class_eval do
34
- include NiceAssertSelect
33
+ if defined? Rails
34
+ Rails.configuration.after_initialize do
35
+ require 'action_controller/test_case'
36
+ ActionController::TestCase.class_eval do
37
+ include NiceAssertSelect
38
+ end
39
+ end
35
40
  end
36
41
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: technicalpickles-nice_assert_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Nichols
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-18 00:00:00 -08:00
12
+ date: 2009-02-19 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15