rspec_pretty_status 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +6 -4
- data/lib/rspec_pretty_status.rb +1 -1
- data/lib/rspec_pretty_status/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c5afb7842bd0dc360e3d277aa616986bbf1f2c237fdca2bf5814655569342ec
|
4
|
+
data.tar.gz: c4a1d53d5027e8cbc5087eb1382a5aa4be804700dbba9cb7ed383b6e040ce45f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb1fa0e68681b4f392b56ee21f8ef7a966bbafb52828942299fbaeeadfaf328824542eebce67ac3be1789e9fe78f6b1865a8fe458a3dc41d19f211de21085a39
|
7
|
+
data.tar.gz: de1c060be2a4abb23bedb8a36cf6973e9d6f9e62fa6efd04e1fcef158696670361a505b09295dc295926e5edc5d3606eccaadb25ac6de60505d407aaa76ab81a
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# RspecPrettyStatus
|
2
2
|
|
3
3
|
Pretty controller specs with rails statuses in pure rspec.
|
4
4
|
|
@@ -16,14 +16,16 @@ And then execute:
|
|
16
16
|
|
17
17
|
Or install it yourself as:
|
18
18
|
|
19
|
-
$ gem install
|
19
|
+
$ gem install rspec_pretty_status
|
20
20
|
|
21
21
|
|
22
22
|
Then include in RSpec:
|
23
23
|
|
24
24
|
```ruby
|
25
|
+
require 'rspec_pretty_status'
|
26
|
+
|
25
27
|
RSpec.configure do |config|
|
26
|
-
config.include
|
28
|
+
config.include RSpecPrettyStatus
|
27
29
|
end
|
28
30
|
```
|
29
31
|
## Usage
|
@@ -36,7 +38,7 @@ it { expect(response).to have_http_status(:ok) }
|
|
36
38
|
|
37
39
|
## Contributing
|
38
40
|
|
39
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/Ar2emis/
|
41
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Ar2emis/rspec_pretty_status.
|
40
42
|
|
41
43
|
|
42
44
|
## License
|
data/lib/rspec_pretty_status.rb
CHANGED
@@ -62,7 +62,7 @@ module RSpecPrettyStatus
|
|
62
62
|
INVERTED_STATUSES = STATUSES.invert
|
63
63
|
|
64
64
|
def error_message(actual_status, expected_status)
|
65
|
-
"expected that status will be #{
|
65
|
+
"expected that status will be #{expected_status} but have #{actual_status}"
|
66
66
|
end
|
67
67
|
|
68
68
|
def error_message_when_negated(actual_status)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_pretty_status
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Shevchenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lefthook
|