rspec_api_blueprint_2 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/rspec_api_blueprint/version.rb +1 -1
- data/lib/rspec_api_blueprint_2.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8dcee6e282d06bf85a17a533fe96bc7a1b673fe
|
4
|
+
data.tar.gz: 24958466ed82e6ade35ef04f3091bfe4832286bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 990740141da9252f399be36bc17a76d4080dc54873c8c308ad85e9f8f22aa96bda98b5b7a26a1bb8ac2746c8b2a1c1fb3706597316f37e6d6e723871f3989f06
|
7
|
+
data.tar.gz: 054ef58ad10d79032ef482e8176b3db583abe815761ec6fe5df51cfc5d1c42048b5191a062008c4bf4106b1977429206c07e1fa4d57212725c308cb39d2a0bbe
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ You can find more about Blueprint at http://apiblueprint.org
|
|
8
8
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
|
-
gem '
|
11
|
+
gem 'rspec_api_blueprint_2', require: false
|
12
12
|
|
13
13
|
And then execute:
|
14
14
|
|
@@ -16,13 +16,13 @@ And then execute:
|
|
16
16
|
|
17
17
|
Or install it yourself as:
|
18
18
|
|
19
|
-
$ gem install
|
19
|
+
$ gem install rspec_api_blueprint_2
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
23
|
In your spec_helper.rb file add
|
24
24
|
|
25
|
-
require '
|
25
|
+
require 'rspec_api_blueprint_2'
|
26
26
|
|
27
27
|
Write tests using the following convention:
|
28
28
|
|
@@ -38,7 +38,7 @@ Example:
|
|
38
38
|
arena = create :arena, foursquare_id: '5104'
|
39
39
|
get v1_arena_path(arena)
|
40
40
|
|
41
|
-
response.
|
41
|
+
expect(response).to have_http_status(:ok)
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
@@ -31,9 +31,9 @@ RSpec.configure do |config|
|
|
31
31
|
file_name = $1.underscore
|
32
32
|
|
33
33
|
if defined? Rails
|
34
|
-
file = File.join(Rails.root, "/api_docs/#{file_name}.
|
34
|
+
file = File.join(Rails.root, "/api_docs/#{file_name}.apib")
|
35
35
|
else
|
36
|
-
file = File.join(File.expand_path('.'), "/api_docs/#{file_name}.
|
36
|
+
file = File.join(File.expand_path('.'), "/api_docs/#{file_name}.apib")
|
37
37
|
end
|
38
38
|
|
39
39
|
File.open(file, 'a') do |f|
|