api_matchers 0.0.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.
Files changed (42) hide show
  1. data/.gitignore +17 -0
  2. data/.rspec +1 -0
  3. data/.rvmrc +1 -0
  4. data/Gemfile +4 -0
  5. data/History.markdown +5 -0
  6. data/LICENSE +22 -0
  7. data/README.markdown +129 -0
  8. data/Rakefile +2 -0
  9. data/api_matchers.gemspec +21 -0
  10. data/lib/api_matchers/core/find_in_json.rb +25 -0
  11. data/lib/api_matchers/core/rspec_matchers.rb +49 -0
  12. data/lib/api_matchers/core/setup.rb +58 -0
  13. data/lib/api_matchers/headers/base.rb +14 -0
  14. data/lib/api_matchers/headers/be_json.rb +17 -0
  15. data/lib/api_matchers/headers/be_xml.rb +17 -0
  16. data/lib/api_matchers/http_status_code/base.rb +32 -0
  17. data/lib/api_matchers/http_status_code/be_bad_request.rb +17 -0
  18. data/lib/api_matchers/http_status_code/be_internal_server_error.rb +17 -0
  19. data/lib/api_matchers/http_status_code/be_unauthorized.rb +17 -0
  20. data/lib/api_matchers/http_status_code/create_resource.rb +17 -0
  21. data/lib/api_matchers/response_body/base.rb +46 -0
  22. data/lib/api_matchers/response_body/have_json_node.rb +25 -0
  23. data/lib/api_matchers/response_body/have_node.rb +6 -0
  24. data/lib/api_matchers/response_body/have_xml_node.rb +19 -0
  25. data/lib/api_matchers/version.rb +3 -0
  26. data/lib/api_matchers.rb +45 -0
  27. data/spec/api_matchers/core/find_in_json_spec.rb +27 -0
  28. data/spec/api_matchers/core/setup_spec.rb +4 -0
  29. data/spec/api_matchers/headers/base_spec.rb +12 -0
  30. data/spec/api_matchers/headers/be_json_spec.rb +23 -0
  31. data/spec/api_matchers/headers/be_xml_spec.rb +27 -0
  32. data/spec/api_matchers/http_status_code/base_spec.rb +12 -0
  33. data/spec/api_matchers/http_status_code/be_bad_request_spec.rb +43 -0
  34. data/spec/api_matchers/http_status_code/be_internal_server_error_spec.rb +43 -0
  35. data/spec/api_matchers/http_status_code/be_unauthorized_spec.rb +43 -0
  36. data/spec/api_matchers/http_status_code/create_resource_spec.rb +43 -0
  37. data/spec/api_matchers/response_body/base_spec.rb +47 -0
  38. data/spec/api_matchers/response_body/have_json_node_spec.rb +101 -0
  39. data/spec/api_matchers/response_body/have_node_spec.rb +27 -0
  40. data/spec/api_matchers/response_body/have_xml_node_spec.rb +102 -0
  41. data/spec/spec_helper.rb +10 -0
  42. metadata +134 -0
metadata ADDED
@@ -0,0 +1,134 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: api_matchers
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Tomas D'Stefano
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-07-16 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: &2153725680 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 2.11.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2153725680
25
+ - !ruby/object:Gem::Dependency
26
+ name: activesupport
27
+ requirement: &2153725180 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 3.2.6
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *2153725180
36
+ - !ruby/object:Gem::Dependency
37
+ name: nokogiri
38
+ requirement: &2153724720 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: 1.5.5
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *2153724720
47
+ description: Collection of RSpec matchers for create your API.
48
+ email:
49
+ - tomas_stefano@successoft.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - .gitignore
55
+ - .rspec
56
+ - .rvmrc
57
+ - Gemfile
58
+ - History.markdown
59
+ - LICENSE
60
+ - README.markdown
61
+ - Rakefile
62
+ - api_matchers.gemspec
63
+ - lib/api_matchers.rb
64
+ - lib/api_matchers/core/find_in_json.rb
65
+ - lib/api_matchers/core/rspec_matchers.rb
66
+ - lib/api_matchers/core/setup.rb
67
+ - lib/api_matchers/headers/base.rb
68
+ - lib/api_matchers/headers/be_json.rb
69
+ - lib/api_matchers/headers/be_xml.rb
70
+ - lib/api_matchers/http_status_code/base.rb
71
+ - lib/api_matchers/http_status_code/be_bad_request.rb
72
+ - lib/api_matchers/http_status_code/be_internal_server_error.rb
73
+ - lib/api_matchers/http_status_code/be_unauthorized.rb
74
+ - lib/api_matchers/http_status_code/create_resource.rb
75
+ - lib/api_matchers/response_body/base.rb
76
+ - lib/api_matchers/response_body/have_json_node.rb
77
+ - lib/api_matchers/response_body/have_node.rb
78
+ - lib/api_matchers/response_body/have_xml_node.rb
79
+ - lib/api_matchers/version.rb
80
+ - spec/api_matchers/core/find_in_json_spec.rb
81
+ - spec/api_matchers/core/setup_spec.rb
82
+ - spec/api_matchers/headers/base_spec.rb
83
+ - spec/api_matchers/headers/be_json_spec.rb
84
+ - spec/api_matchers/headers/be_xml_spec.rb
85
+ - spec/api_matchers/http_status_code/base_spec.rb
86
+ - spec/api_matchers/http_status_code/be_bad_request_spec.rb
87
+ - spec/api_matchers/http_status_code/be_internal_server_error_spec.rb
88
+ - spec/api_matchers/http_status_code/be_unauthorized_spec.rb
89
+ - spec/api_matchers/http_status_code/create_resource_spec.rb
90
+ - spec/api_matchers/response_body/base_spec.rb
91
+ - spec/api_matchers/response_body/have_json_node_spec.rb
92
+ - spec/api_matchers/response_body/have_node_spec.rb
93
+ - spec/api_matchers/response_body/have_xml_node_spec.rb
94
+ - spec/spec_helper.rb
95
+ homepage: https://github.com/tomas-stefano/api_matchers
96
+ licenses: []
97
+ post_install_message:
98
+ rdoc_options: []
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ! '>='
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ requirements: []
114
+ rubyforge_project:
115
+ rubygems_version: 1.8.17
116
+ signing_key:
117
+ specification_version: 3
118
+ summary: Collection of RSpec matchers for create your API.
119
+ test_files:
120
+ - spec/api_matchers/core/find_in_json_spec.rb
121
+ - spec/api_matchers/core/setup_spec.rb
122
+ - spec/api_matchers/headers/base_spec.rb
123
+ - spec/api_matchers/headers/be_json_spec.rb
124
+ - spec/api_matchers/headers/be_xml_spec.rb
125
+ - spec/api_matchers/http_status_code/base_spec.rb
126
+ - spec/api_matchers/http_status_code/be_bad_request_spec.rb
127
+ - spec/api_matchers/http_status_code/be_internal_server_error_spec.rb
128
+ - spec/api_matchers/http_status_code/be_unauthorized_spec.rb
129
+ - spec/api_matchers/http_status_code/create_resource_spec.rb
130
+ - spec/api_matchers/response_body/base_spec.rb
131
+ - spec/api_matchers/response_body/have_json_node_spec.rb
132
+ - spec/api_matchers/response_body/have_node_spec.rb
133
+ - spec/api_matchers/response_body/have_xml_node_spec.rb
134
+ - spec/spec_helper.rb