rspec_attribute_matchers 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rspec_attribute_matchers.rb +1 -1
  2. 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.1
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-09-27 00:00:00.000000000 Z
12
+ date: 2012-10-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: sujoyg@gmail.com