aform 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aform/form.rb +1 -1
- data/lib/aform/version.rb +1 -1
- data/test/integration/active_record_test.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe5b2d60a9140c2a2477d80b1c6eb8a9a1d7efe7
|
4
|
+
data.tar.gz: 64377b994360f01535d6d94e9933dd026cb6bda9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aca61c011ecbfa66e5b810fa514e3a09ef786b57f0a93fbe97ee156ac86bc25832997f37d556693f11b7c2bddaa4bb8e8e98960dac5128d34c838dc70d7c196
|
7
|
+
data.tar.gz: 4dd679c64d3cda49eab1ca903d8071bf3eaf06fab3b9923c399ad62c69c3751807e62bbcd4d72b9f30f2aa2033e906ff1346b625ca00db86e668dc01bc23e6bc
|
data/lib/aform/form.rb
CHANGED
data/lib/aform/version.rb
CHANGED
@@ -116,6 +116,16 @@ describe "saving" do
|
|
116
116
|
Comment.count.must_equal 1
|
117
117
|
Like.count.must_equal 1
|
118
118
|
end
|
119
|
+
|
120
|
+
context "when nested is nil" do
|
121
|
+
it "saves without nested" do
|
122
|
+
post = Post.new
|
123
|
+
attrs = {title: "Cool Post", author: "John Doe",
|
124
|
+
comments: nil}
|
125
|
+
form = PostForm.new(post, attrs)
|
126
|
+
form.save.must_equal true
|
127
|
+
end
|
128
|
+
end
|
119
129
|
end
|
120
130
|
|
121
131
|
context "attributes from method" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Versal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|