yetanothernguyen-shoulda-matchers 1.0.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/Appraisals +12 -0
  2. data/CONTRIBUTION_GUIDELINES.rdoc +10 -0
  3. data/Gemfile +5 -0
  4. data/MIT-LICENSE +22 -0
  5. data/README.rdoc +78 -0
  6. data/Rakefile +55 -0
  7. data/lib/shoulda-matchers.rb +1 -0
  8. data/lib/shoulda/matchers.rb +8 -0
  9. data/lib/shoulda/matchers/action_controller.rb +38 -0
  10. data/lib/shoulda/matchers/action_controller/assign_to_matcher.rb +114 -0
  11. data/lib/shoulda/matchers/action_controller/filter_param_matcher.rb +50 -0
  12. data/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb +62 -0
  13. data/lib/shoulda/matchers/action_controller/render_template_matcher.rb +54 -0
  14. data/lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb +99 -0
  15. data/lib/shoulda/matchers/action_controller/respond_with_content_type_matcher.rb +74 -0
  16. data/lib/shoulda/matchers/action_controller/respond_with_matcher.rb +85 -0
  17. data/lib/shoulda/matchers/action_controller/route_matcher.rb +93 -0
  18. data/lib/shoulda/matchers/action_controller/set_session_matcher.rb +98 -0
  19. data/lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb +94 -0
  20. data/lib/shoulda/matchers/action_mailer.rb +22 -0
  21. data/lib/shoulda/matchers/action_mailer/have_sent_email.rb +166 -0
  22. data/lib/shoulda/matchers/active_model.rb +33 -0
  23. data/lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb +83 -0
  24. data/lib/shoulda/matchers/active_model/allow_value_matcher.rb +110 -0
  25. data/lib/shoulda/matchers/active_model/ensure_inclusion_of_matcher.rb +87 -0
  26. data/lib/shoulda/matchers/active_model/ensure_length_of_matcher.rb +141 -0
  27. data/lib/shoulda/matchers/active_model/helpers.rb +29 -0
  28. data/lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb +41 -0
  29. data/lib/shoulda/matchers/active_model/validate_format_of_matcher.rb +65 -0
  30. data/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb +39 -0
  31. data/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb +61 -0
  32. data/lib/shoulda/matchers/active_model/validate_uniqueness_of_matcher.rb +148 -0
  33. data/lib/shoulda/matchers/active_model/validation_matcher.rb +56 -0
  34. data/lib/shoulda/matchers/active_record.rb +24 -0
  35. data/lib/shoulda/matchers/active_record/association_matcher.rb +226 -0
  36. data/lib/shoulda/matchers/active_record/have_db_column_matcher.rb +169 -0
  37. data/lib/shoulda/matchers/active_record/have_db_index_matcher.rb +112 -0
  38. data/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb +59 -0
  39. data/lib/shoulda/matchers/assertion_error.rb +11 -0
  40. data/lib/shoulda/matchers/integrations/rspec.rb +38 -0
  41. data/lib/shoulda/matchers/integrations/test_unit.rb +54 -0
  42. data/lib/shoulda/matchers/version.rb +5 -0
  43. metadata +169 -0
@@ -0,0 +1,5 @@
1
+ module Shoulda
2
+ module Matchers
3
+ VERSION = "1.0.0.beta3".dup
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,169 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yetanothernguyen-shoulda-matchers
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: 6
5
+ version: 1.0.0.beta3
6
+ platform: ruby
7
+ authors:
8
+ - Tammer Saleh
9
+ - Joe Ferris
10
+ - Ryan McGeary
11
+ - Dan Croak
12
+ - Matt Jankowski
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-06-24 00:00:00 +08:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: sqlite3-ruby
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ version: 1.3.2
29
+ type: :development
30
+ version_requirements: *id001
31
+ - !ruby/object:Gem::Dependency
32
+ name: mocha
33
+ prerelease: false
34
+ requirement: &id002 !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ~>
38
+ - !ruby/object:Gem::Version
39
+ version: 0.9.10
40
+ type: :development
41
+ version_requirements: *id002
42
+ - !ruby/object:Gem::Dependency
43
+ name: rspec-rails
44
+ prerelease: false
45
+ requirement: &id003 !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - ~>
49
+ - !ruby/object:Gem::Version
50
+ version: 2.6.1.beta1
51
+ type: :development
52
+ version_requirements: *id003
53
+ - !ruby/object:Gem::Dependency
54
+ name: cucumber
55
+ prerelease: false
56
+ requirement: &id004 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.10.0
62
+ type: :development
63
+ version_requirements: *id004
64
+ - !ruby/object:Gem::Dependency
65
+ name: appraisal
66
+ prerelease: false
67
+ requirement: &id005 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ~>
71
+ - !ruby/object:Gem::Version
72
+ version: 0.3.4
73
+ type: :development
74
+ version_requirements: *id005
75
+ - !ruby/object:Gem::Dependency
76
+ name: ruby-debug19
77
+ prerelease: false
78
+ requirement: &id006 !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ~>
82
+ - !ruby/object:Gem::Version
83
+ version: 0.11.6
84
+ type: :development
85
+ version_requirements: *id006
86
+ description: Making tests easy on the fingers and eyes. This fork makes validate_uniqueness_of matcher compatible with other ORM such as Mongoid and MongoMapper
87
+ email: support@thoughtbot.com
88
+ executables: []
89
+
90
+ extensions: []
91
+
92
+ extra_rdoc_files:
93
+ - README.rdoc
94
+ - CONTRIBUTION_GUIDELINES.rdoc
95
+ files:
96
+ - Appraisals
97
+ - CONTRIBUTION_GUIDELINES.rdoc
98
+ - Gemfile
99
+ - MIT-LICENSE
100
+ - Rakefile
101
+ - README.rdoc
102
+ - lib/shoulda/matchers/action_controller/assign_to_matcher.rb
103
+ - lib/shoulda/matchers/action_controller/filter_param_matcher.rb
104
+ - lib/shoulda/matchers/action_controller/redirect_to_matcher.rb
105
+ - lib/shoulda/matchers/action_controller/render_template_matcher.rb
106
+ - lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb
107
+ - lib/shoulda/matchers/action_controller/respond_with_content_type_matcher.rb
108
+ - lib/shoulda/matchers/action_controller/respond_with_matcher.rb
109
+ - lib/shoulda/matchers/action_controller/route_matcher.rb
110
+ - lib/shoulda/matchers/action_controller/set_session_matcher.rb
111
+ - lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb
112
+ - lib/shoulda/matchers/action_controller.rb
113
+ - lib/shoulda/matchers/action_mailer/have_sent_email.rb
114
+ - lib/shoulda/matchers/action_mailer.rb
115
+ - lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb
116
+ - lib/shoulda/matchers/active_model/allow_value_matcher.rb
117
+ - lib/shoulda/matchers/active_model/ensure_inclusion_of_matcher.rb
118
+ - lib/shoulda/matchers/active_model/ensure_length_of_matcher.rb
119
+ - lib/shoulda/matchers/active_model/helpers.rb
120
+ - lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb
121
+ - lib/shoulda/matchers/active_model/validate_format_of_matcher.rb
122
+ - lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb
123
+ - lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb
124
+ - lib/shoulda/matchers/active_model/validate_uniqueness_of_matcher.rb
125
+ - lib/shoulda/matchers/active_model/validation_matcher.rb
126
+ - lib/shoulda/matchers/active_model.rb
127
+ - lib/shoulda/matchers/active_record/association_matcher.rb
128
+ - lib/shoulda/matchers/active_record/have_db_column_matcher.rb
129
+ - lib/shoulda/matchers/active_record/have_db_index_matcher.rb
130
+ - lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb
131
+ - lib/shoulda/matchers/active_record.rb
132
+ - lib/shoulda/matchers/assertion_error.rb
133
+ - lib/shoulda/matchers/integrations/rspec.rb
134
+ - lib/shoulda/matchers/integrations/test_unit.rb
135
+ - lib/shoulda/matchers/version.rb
136
+ - lib/shoulda/matchers.rb
137
+ - lib/shoulda-matchers.rb
138
+ has_rdoc: true
139
+ homepage: http://thoughtbot.com/community/
140
+ licenses: []
141
+
142
+ post_install_message:
143
+ rdoc_options:
144
+ - --line-numbers
145
+ - --main
146
+ - README.rdoc
147
+ require_paths:
148
+ - lib
149
+ required_ruby_version: !ruby/object:Gem::Requirement
150
+ none: false
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: "0"
155
+ required_rubygems_version: !ruby/object:Gem::Requirement
156
+ none: false
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: "0"
161
+ requirements: []
162
+
163
+ rubyforge_project:
164
+ rubygems_version: 1.6.2
165
+ signing_key:
166
+ specification_version: 3
167
+ summary: Making tests easy on the fingers and eyes
168
+ test_files: []
169
+