rspec-api_helpers 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1059a5b7da87e98a2292e3225d9c7eb3d686c8c1
4
- data.tar.gz: 01ea35dc008e61c27fd7a84088c3773c790b2fb9
3
+ metadata.gz: 1267d02472c6b6dc9488167e1b26a94338cf8ac1
4
+ data.tar.gz: b70848a92746fa4642d8a5723e802d134046ee53
5
5
  SHA512:
6
- metadata.gz: 702e77dfb79183d12f464760f5b969555f3dcb6734b77c0def10a7773b098791b4a8377c8c977f7b4e5ed0c8ea29fa5e7a0f754ab83d0e6aff7798712150e663
7
- data.tar.gz: ab883d0ce0e862788ef40512c239c955ba14ec9770332bfc74485619832385aefe84a845031f4e887d73eef12c83bf5e8343edd9b4188ee5e08816efb6dfd6a7
6
+ metadata.gz: 80a8a72d5999a2f57de18831edbfba0349bb231a70aed3766529d96cdc3cb61b4b4cad47f1ba05e21d2917265fdb2f9a3a882bbcd010761a20221ca249f3f54d
7
+ data.tar.gz: fbceba80d2355469c7be0560360b524519edca15f03d1a8ca7e8d8e0e3c3f399423ad3d3b7acd7f33d63aff19d14062e9b1ac108abe17d00174ef368e0a3865f
data/README.md CHANGED
@@ -23,6 +23,19 @@ This Gem expects you to have set your rspec to use Rake::Test helpers as describ
23
23
  [here](https://gist.github.com/alex-zige/5795358) because it checks `last_response`
24
24
  attributes.
25
25
 
26
+ In your `rails_helper.rb` add in the top:
27
+
28
+ ```ruby
29
+ require 'rspec/api_helpers'
30
+ ```
31
+
32
+ and then you only need to include the helpers in your rspec examples. You can include them on all api (:type => :api) helpers by adding the following line in your rspec config:
33
+
34
+ ```ruby
35
+ config.include Rspec::ApiHelpers, type: :api
36
+ ```
37
+
38
+
26
39
  ### Examples
27
40
 
28
41
  ```ruby
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module Api
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -6,11 +6,11 @@ require 'rspec/api_helpers/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "rspec-api_helpers"
8
8
  spec.version = Rspec::Api::VERSION
9
- spec.authors = ["Filippos Vasilakis"]
10
- spec.email = ["vasilakisfil@gmail.com"]
9
+ spec.authors = ["Filippos Vasilakis", "Kollegorna"]
10
+ spec.email = ["vasilakisfil@gmail.com", "admin@kollegorna.se"]
11
11
  spec.summary = %q{Rspec matchers for APIs}
12
12
  spec.description = %q{Rspec matchers for APIs}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/kollegorna/rspec-api_helpers"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-api_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filippos Vasilakis
8
+ - Kollegorna
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-05-05 00:00:00.000000000 Z
12
+ date: 2015-10-06 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -41,6 +42,7 @@ dependencies:
41
42
  description: Rspec matchers for APIs
42
43
  email:
43
44
  - vasilakisfil@gmail.com
45
+ - admin@kollegorna.se
44
46
  executables: []
45
47
  extensions: []
46
48
  extra_rdoc_files: []
@@ -55,7 +57,7 @@ files:
55
57
  - lib/rspec/api_helpers/example_methods.rb
56
58
  - lib/rspec/api_helpers/version.rb
57
59
  - rspec-api_helpers.gemspec
58
- homepage: ''
60
+ homepage: https://github.com/kollegorna/rspec-api_helpers
59
61
  licenses:
60
62
  - MIT
61
63
  metadata: {}