rspec_fixtures 0.4.0 → 0.4.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_fixtures/version.rb +1 -1
- data/lib/rspec_fixtures.rb +0 -2
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e05621463994adf32ada5f141cd4453f86bac5aff0f98cd4c8ed32ebeaaba2a3
|
4
|
+
data.tar.gz: bd13876b57104f73cfa294cc3122795cca16cf245630a6b576c887b7a580bc74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb41048c1d31439321c0299b212ae54238cd2c4b5e388c5998f9dcfca08135ce88b98ea30e697f3c3feb17111a20a76d2aefa24d9f73948cda07270e2e7dd86e
|
7
|
+
data.tar.gz: e32ea13df4866b9f57b8cd2fc29835c3452c4ec24aa81e17972d983c56c32394c6adca52c23eb4b7374a7eab90b23ea8853cd1daa79ea589ad71e5226d216c60
|
data/README.md
CHANGED
@@ -84,8 +84,8 @@ expect{ $stderr.puts "hello" }.to output_fixture('fixture_filename').to_stderr
|
|
84
84
|
|
85
85
|
Adding `diff(distance)` to either `match_fixture` or `output_fixture` will
|
86
86
|
change the matching behavior. Instead of expecting the strings to be exactly
|
87
|
-
the same, using `diff` compares the strings using the
|
88
|
-
|
87
|
+
the same, using `diff` compares the strings using the
|
88
|
+
[Levenshtein distance][1] algorithm.
|
89
89
|
|
90
90
|
In the below example, we allow up to 5 characters to be different.
|
91
91
|
|
@@ -94,8 +94,6 @@ expect('some string').to match_fixture('fixture_filename').diff(5)
|
|
94
94
|
expect{ puts 'some string' }.to output_fixture('fixture_filename').diff(5)
|
95
95
|
```
|
96
96
|
|
97
|
-
Distance is measured using the Levenshtein algorithm.
|
98
|
-
|
99
97
|
|
100
98
|
|
101
99
|
Configuration
|
@@ -125,3 +123,5 @@ RSpec.configure do |config|
|
|
125
123
|
end
|
126
124
|
```
|
127
125
|
|
126
|
+
|
127
|
+
[1]: https://en.wikipedia.org/wiki/Levenshtein_distance
|
data/lib/rspec_fixtures.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_fixtures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colsole
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: string-similarity
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rspec
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,20 +122,6 @@ dependencies:
|
|
108
122
|
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: '0.9'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: string-similarity
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '2.0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '2.0'
|
125
125
|
description: Automatic interactive fixtures for rspec
|
126
126
|
email: db@dannyben.com
|
127
127
|
executables: []
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '0'
|
159
159
|
requirements: []
|
160
160
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.7.
|
161
|
+
rubygems_version: 2.7.6
|
162
162
|
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: Interactive RSpec Fixtures
|