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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e05621463994adf32ada5f141cd4453f86bac5aff0f98cd4c8ed32ebeaaba2a3
4
- data.tar.gz: bd13876b57104f73cfa294cc3122795cca16cf245630a6b576c887b7a580bc74
3
+ metadata.gz: c37311a80d9a2b365aa52e88fc85889b06bff30b34d816ac751f04babb675de9
4
+ data.tar.gz: 0f07c562bbc7ef087f6d7af93477b4d7a288364e62cb5e05dfa3ea1c81f712cc
5
5
  SHA512:
6
- metadata.gz: cb41048c1d31439321c0299b212ae54238cd2c4b5e388c5998f9dcfca08135ce88b98ea30e697f3c3feb17111a20a76d2aefa24d9f73948cda07270e2e7dd86e
7
- data.tar.gz: e32ea13df4866b9f57b8cd2fc29835c3452c4ec24aa81e17972d983c56c32394c6adca52c23eb4b7374a7eab90b23ea8853cd1daa79ea589ad71e5226d216c60
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://img.shields.io/gem/v/rspec_fixtures.svg?style=flat-square)](https://rubygems.org/gems/rspec_fixtures)
5
- [![Travis](https://img.shields.io/travis/DannyBen/rspec_fixtures.svg?style=flat-square)](https://travis-ci.org/DannyBen/rspec_fixtures)
6
- [![Maintainability](https://img.shields.io/codeclimate/maintainability/DannyBen/rspec_fixtures.svg?style=flat-square)](https://codeclimate.com/github/DannyBen/rspec_fixtures)
7
- [![Issues](https://img.shields.io/codeclimate/issues/github/DannyBen/rspec_fixtures.svg?style=flat-square)](https://codeclimate.com/github/DannyBen/rspec_fixtures)
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
@@ -1,3 +1,3 @@
1
1
  module RSpecFixtures
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
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.1
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-02-24 00:00:00.000000000 Z
11
+ date: 2018-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colsole