test_dummy 0.2.0 → 0.2.1

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/.gitignore CHANGED
@@ -5,6 +5,8 @@
5
5
  *.tmproj
6
6
  tmtags
7
7
 
8
+ test/log
9
+
8
10
  *~
9
11
  \#*
10
12
  .\#*
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/lib/test_dummy.rb CHANGED
@@ -207,7 +207,7 @@ module TestDummy
207
207
 
208
208
  @test_dummy_order.each do |name|
209
209
  if (reflection = reflect_on_association(name))
210
- unless ((with_attributes and with_attributes.key?(name.to_sym)) or model.send(name))
210
+ unless ((with_attributes and with_attributes.key?(name.to_sym)) or model.send(name).present?)
211
211
  model.send(:"#{name}=", dummy_method_call(model, with_attributes, dummy_method(name)))
212
212
  end
213
213
  else
data/test_dummy.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{test_dummy}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["tadman"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - tadman