rambo_ruby 0.4.0 → 0.5.0
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/rambo/rspec/templates/example_group_template.erb +4 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06856629cc151adf7fcea55093eb86430cd8984b
|
4
|
+
data.tar.gz: 250d9f949fa560c42568b758947ab05009c6f7a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b54485d848d063d80ad55b7444f900296db4cda09f2e4f250bdfa0ae80a4cdb5e43f158bb9879915a634a860402fca3344c05001fe12860e8a17210cb42934bf
|
7
|
+
data.tar.gz: a008371469187b544c0c7e045a78da41c6821e59bf7fee5c83c2ce0e47a4182267f834d8194cb1462eedd21d9d31054b5a173650f07cceea4094ff6d6bedf2a1
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Rambo is a gem that generates API contract tests from API docs in [RAML](http://raml.org/). Rambo is being developed to test APIs complying with standard REST practices. Mileage may vary with other architectures, but I'm happy to consider pull requests.
|
6
6
|
|
7
|
-
#### The current version of Rambo is 0.
|
7
|
+
#### The current version of Rambo is 0.5.0. It is highly unstable and has a limited feature set. Use at your own risk and please file issue reports if they come up!
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
You can install Rambo using:
|
@@ -14,7 +14,7 @@ gem install rambo_ruby
|
|
14
14
|
You can also add it to your project's Gemfile:
|
15
15
|
```ruby
|
16
16
|
group :development, :test do
|
17
|
-
gem 'rambo_ruby', '~> 0.
|
17
|
+
gem 'rambo_ruby', '~> 0.5'
|
18
18
|
end
|
19
19
|
```
|
20
20
|
There are three options for generating tests from Rambo: The command line tool, the rake task, and the Ruby API. In all cases, Rambo will look for a `.rambo.yml` file in the root directory of your project for configuration options. Options may also be passed in through the command line as arguments or the Ruby API as a hash. There is currently no option to pass arguments to the Rake task, but Rambo comes pre-loaded with sensible defaults, and the `.rambo.yml` file is always an option.
|
@@ -8,7 +8,10 @@
|
|
8
8
|
}
|
9
9
|
end<% end %><% if method.request_body %>
|
10
10
|
let(:request_body) do
|
11
|
-
|
11
|
+
JSON.parse(
|
12
|
+
File.read("<%= "spec/support/examples/#{@resource.to_s.gsub("/", "")}_#{method.method}_request_body.json" %>"),
|
13
|
+
symbolize_names: true
|
14
|
+
)
|
12
15
|
end<% end %><% if has_schema = method.responses.first.bodies.first.schema %>
|
13
16
|
|
14
17
|
let(:response_schema) do
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rambo_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dana Scheider
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -287,7 +287,7 @@ rubyforge_project:
|
|
287
287
|
rubygems_version: 2.6.6
|
288
288
|
signing_key:
|
289
289
|
specification_version: 4
|
290
|
-
summary: rambo_ruby-0.
|
290
|
+
summary: rambo_ruby-0.5.0
|
291
291
|
test_files:
|
292
292
|
- features/create_files.feature
|
293
293
|
- features/error_modes.feature
|