rspec_attribute_matchers 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rspec_attribute_matchers.rb +1 -1
- metadata +2 -2
|
@@ -2,7 +2,7 @@ require 'rspec'
|
|
|
2
2
|
|
|
3
3
|
module RSpecAttributeMatchers
|
|
4
4
|
def properties_to_sentence(hash)
|
|
5
|
-
" of " + hash.map { |key, value| "#{key} #{value}" }.to_sentence
|
|
5
|
+
" of " + hash.map { |key, value| "#{key} #{value}" }.to_sentence if hash.present?
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
RSpec::Matchers.define :have_attribute do |attr|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec_attribute_matchers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-10-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description:
|
|
15
15
|
email: sujoyg@gmail.com
|