rspec_api_blueprint_2 0.0.0 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e05443e1db50779db4bd07a40aa763a799af952
4
- data.tar.gz: 27e02fa05104c4dcecb6703e8a5e87c38c3172be
3
+ metadata.gz: b8dcee6e282d06bf85a17a533fe96bc7a1b673fe
4
+ data.tar.gz: 24958466ed82e6ade35ef04f3091bfe4832286bd
5
5
  SHA512:
6
- metadata.gz: 47f51a4a09dc95c1a992ba6b901d94036d26d2950a243d5f0185c185621737cbf2e9714e1c34948fd857725ec5ae8b020983d5d2eb81ab3b51d7a379dd303c72
7
- data.tar.gz: a5dc41ebb54b551fafaeaf0e4217891468a6dc59df577d6b3b70ddb1148725aca65dfaf669104fb9327f9ab428314db006df974c2e046425c9345339eea6b2d6
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 'rspec_api_blueprint', require: false
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 rspec_api_blueprint
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 'rspec_api_blueprint'
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.status.should eq(200)
41
+ expect(response).to have_http_status(:ok)
42
42
  end
43
43
  end
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module RspecApiBlueprint
2
- VERSION = "0.0.0"
2
+ VERSION = "0.0.1"
3
3
  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}.txt")
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}.txt")
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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_api_blueprint_2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dayvson Lima