public
Description: A collection of RSpec matchers to be used with the Ruby on Rails project
Clone URL: git://github.com/joshknowles/rspec-on-rails-matchers.git
Added should observe.  Patch by Luke Melia.
joshknowles (author)
Sun Mar 02 21:09:39 -0800 2008
commit  4e88e05cfcf4ef79103bf270a4044bc153efbae7
tree    43bfa839f7b968a0a7235f11e1510dc7c6ee9314
parent  ce4a82a6b13bf54db07dc66a5c1cd1048d72185c
...
4
5
6
 
7
8
9
...
4
5
6
7
8
9
10
0
@@ -4,5 +4,6 @@ Change Log
0
 Trunk
0
 -----
0
 
0
+* 2008/03/02 - Added should observe (Luke Melia)
0
 * 2008/03/02 - Patched validates_length_of to use within to be consistent with Rails (Matt Pelletier)
0
 * 2007/01/03 - Initial Public Release
0
\ No newline at end of file
0
...
51
52
53
 
 
 
 
 
54
55
56
...
173
174
175
176
 
 
 
177
178
179
...
51
52
53
54
55
56
57
58
59
60
61
...
178
179
180
 
181
182
183
184
185
186
0
@@ -51,6 +51,11 @@ Adds the following RSpec matchers:
0
     object.should validate_length_of(:attribute, :is => 5)
0
     TM snippet: [msvl + tab]
0
 
0
+ * Observers:
0
+ Verify that the observer is observing a class. (doesn't verify that the observation works)
0
+
0
+ object.should observe(:model)
0
+ example: GroupObserver.should observe(Group)
0
 
0
   * Views:
0
     Verifies that the views contains some tags.
0
@@ -173,6 +178,8 @@ Core Contributors
0
 Contributors
0
 -------------
0
 
0
- * ckknight (improved should validate_length_of)
0
+ * ckknight
0
+ * Matt Pelletier
0
+ * Luke Melia
0
 
0
 Copyright (c) 2008 The Plugin Development Team, released under the MIT license
0
\ No newline at end of file
...
 
1
2
3
4
 
 
...
1
2
3
 
4
5
6
0
@@ -1,3 +1,5 @@
0
+require 'spec/rails/matchers/observers'
0
 require 'spec/rails/matchers/associations'
0
 require 'spec/rails/matchers/validations'
0
-require 'spec/rails/matchers/views'
0
\ No newline at end of file
0
+require 'spec/rails/matchers/views'
0
+require 'spec/rails/matchers/observers'

Comments

    No one has commented yet.