rspec_fixtures 0.4.1 → 0.4.2
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 -5
- data/lib/rspec_fixtures/matchers/base.rb +3 -0
- data/lib/rspec_fixtures/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: c37311a80d9a2b365aa52e88fc85889b06bff30b34d816ac751f04babb675de9
|
4
|
+
data.tar.gz: 0f07c562bbc7ef087f6d7af93477b4d7a288364e62cb5e05dfa3ea1c81f712cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7d76a8ef480504d15633e5b98e46f8c4a3e85cdf328433b80cf828803403121e76613dcbd2bc360e3990dd8a360ed78b6935b28e62a7ca4388f8094cfb25c0d
|
7
|
+
data.tar.gz: c9efe17b0a4e6f70e680903e22c8f5546804bafa3ccb91f3ed06ae392f085369f7564944bdf2009e118e611def816c5bbdbe6d74fa96dc66a74997e9b6139251
|
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
RSpec Fixtures
|
2
2
|
==================================================
|
3
3
|
|
4
|
-
[![Gem](https://
|
5
|
-
[![
|
6
|
-
[![Maintainability](https://
|
7
|
-
[![
|
8
|
-
[![Gemnasium](https://img.shields.io/gemnasium/DannyBen/rspec_fixtures.svg?style=flat-square)](https://gemnasium.com/DannyBen/rspec_fixtures)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/rspec_fixtures.svg)](https://badge.fury.io/rb/rspec_fixtures)
|
5
|
+
[![Build Status](https://travis-ci.com/DannyBen/rspec_fixtures.svg?branch=master)](https://travis-ci.com/DannyBen/rspec_fixtures)
|
6
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/a06ed5e30412062c454c/maintainability)](https://codeclimate.com/github/DannyBen/rspec_fixtures/maintainability)
|
7
|
+
[![Test Coverage](https://api.codeclimate.com/v1/badges/a06ed5e30412062c454c/test_coverage)](https://codeclimate.com/github/DannyBen/rspec_fixtures/test_coverage)
|
9
8
|
|
10
9
|
---
|
11
10
|
|
@@ -12,6 +12,7 @@ module RSpecFixtures
|
|
12
12
|
# Called by RSpec. This will be overridden by child matchers.
|
13
13
|
def matches?(actual)
|
14
14
|
@actual ||= actual
|
15
|
+
return false if @actual.empty?
|
15
16
|
|
16
17
|
success = strings_match?
|
17
18
|
|
@@ -37,6 +38,8 @@ module RSpecFixtures
|
|
37
38
|
|
38
39
|
# Called by RSpec when there is a failure
|
39
40
|
def failure_message
|
41
|
+
return "actual string is empty" if actual.empty?
|
42
|
+
|
40
43
|
result = "expected: #{actual}\nto match: #{expected}"
|
41
44
|
|
42
45
|
if distance
|
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.2
|
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-
|
11
|
+
date: 2018-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colsole
|