public
Description: Textmate bundle for RSpec.
Clone URL: git://github.com/dchelimsky/rspec-tmbundle.git
Patch from Corey Haines to add include_text matcher (rspec_on_rails). 
Closes #343
dchelimsky (author)
Sun Mar 16 18:46:44 -0700 2008
commit  6f2c4cf4741bef610bc23982b2c9fcf6d96d8b07
tree    71921ca205a730f1377f95999301ca91a33cf903
parent  b6468839603b24d8635b3c6d39bf4a5819a487d4
...
114
115
116
 
 
117
118
119
...
114
115
116
117
118
119
120
121
0
@@ -114,6 +114,8 @@ In alphabetical order (by last name)
0
 ** Patch for file mappings for rspec/autotest integration
0
 * James Edward Gray II
0
 ** Patch to improve syntax highlighting in TextMate
0
+* Corey Haines
0
+** Patch [#343] include_text matcher for rails
0
 * Coda Hale
0
 ** Patch [#279] Autotest never calls the :red hook
0
 * Kyle Hargraves
...
5
6
7
 
8
9
10
...
5
6
7
8
9
10
11
0
@@ -5,6 +5,7 @@ Note: we've removed the metaclass method from Object. There were some generated
0
 used it, and they will now break. Just replace the metaclass call with (class << self; self; end)
0
 and all will be well.
0
 
0
+* Patch from Corey Haines to add include_text matcher (rspec_on_rails)
0
 * Patch from Antti Tarvainen to stop files from being loaded repeatedly when running heckle. Closes #333.
0
 * Fixed bug in which session object in example was not the same instance used in the controller. Closes #331.
0
 * Added stub_model method which creates a real model instance with :id stubbed and data access prohibited.
...
6
7
8
9
 
10
11
12
...
6
7
8
 
9
10
11
12
0
@@ -6,7 +6,7 @@ module Spec
0
       TINY = 3
0
       RELEASE_CANDIDATE = nil
0
 
0
- BUILD_TIME_UTC = 20080309210001
0
+ BUILD_TIME_UTC = 20080316231210
0
 
0
       STRING = [MAJOR, MINOR, TINY].join('.')
0
       TAG = "REL_#{[MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('_')}".upcase.gsub(/\.|-/, '_')
...
1
2
3
 
4
5
6
...
1
2
3
4
5
6
7
0
@@ -1,6 +1,7 @@
0
 dir = File.dirname(__FILE__)
0
 require 'spec/rails/matchers/assert_select'
0
 require 'spec/rails/matchers/have_text'
0
+require 'spec/rails/matchers/include_text'
0
 require 'spec/rails/matchers/redirect_to'
0
 require 'spec/rails/matchers/render_template'
0
 
...
39
40
41
 
 
 
42
43
44
 
45
46
47
...
39
40
41
42
43
44
45
 
 
46
47
48
49
0
@@ -39,9 +39,11 @@ module Spec
0
       # Accepts a String or a Regexp, matching a String using ==
0
       # and a Regexp using =~.
0
       #
0
+ # If response_or_text has a #body, then that is used as to match against
0
+ # else it uses response_or_text
0
+ #
0
       # Use this instead of <tt>response.should have_tag()</tt>
0
- # when you either don't know or don't care where on the page
0
- # this text appears.
0
+ # when you want to match the whole string or whole body
0
       #
0
       # == Examples
0
       #
...
1
2
3
4
 
5
6
7
...
1
2
3
 
4
5
6
7
0
@@ -1,7 +1,7 @@
0
 module Spec
0
   module Rails
0
     module VERSION #:nodoc:
0
- BUILD_TIME_UTC = 20080309210001
0
+ BUILD_TIME_UTC = 20080316231210
0
     end
0
   end
0
 end

Comments

    No one has commented yet.