anima 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/anima.gemspec +1 -1
- data/lib/anima.rb +0 -1
- data/spec/unit/anima_spec.rb +9 -10
- 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: fdedbf4864bb7044d72c9f6e4ad63c1b364419ab
|
4
|
+
data.tar.gz: 3a320c5eade913ddf3c3e2139f16f4e077a474d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f30d533e039382d8eba7ba5b0386d86db400b9c61b4658e821c01fb5078c6f05df340f8077b5f74a2d872a39d5b104bfa87511ae9bdcefd3d680a74790dc8c2
|
7
|
+
data.tar.gz: da76f7fe9694cb76ee9c0d401e3a360cbcef3ffee4d1b043117e50888271ba23baad4b4f4f908519f14851432401dc85b1e8a0cff16f005936e187827e58c735
|
data/anima.gemspec
CHANGED
data/lib/anima.rb
CHANGED
data/spec/unit/anima_spec.rb
CHANGED
@@ -1,13 +1,10 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Anima do
|
4
|
-
|
5
4
|
let(:object) { described_class.new(:foo) }
|
6
5
|
|
7
6
|
describe '#attributes_hash' do
|
8
|
-
|
9
|
-
let(:value) { double('Value') }
|
10
|
-
|
7
|
+
let(:value) { double('Value') }
|
11
8
|
let(:instance) { double(foo: value) }
|
12
9
|
|
13
10
|
subject { object.attributes_hash(instance) }
|
@@ -20,11 +17,13 @@ describe Anima do
|
|
20
17
|
|
21
18
|
context 'with single attribute' do
|
22
19
|
subject { object.remove(:bar) }
|
20
|
+
|
23
21
|
it { should eql(described_class.new(:foo)) }
|
24
22
|
end
|
25
23
|
|
26
24
|
context 'with multiple attributes' do
|
27
25
|
subject { object.remove(:foo, :bar) }
|
26
|
+
|
28
27
|
it { should eql(described_class.new) }
|
29
28
|
end
|
30
29
|
|
@@ -38,16 +37,19 @@ describe Anima do
|
|
38
37
|
describe '#add' do
|
39
38
|
context 'with single attribute' do
|
40
39
|
subject { object.add(:bar) }
|
40
|
+
|
41
41
|
it { should eql(described_class.new(:foo, :bar)) }
|
42
42
|
end
|
43
43
|
|
44
44
|
context 'with multiple attributes' do
|
45
45
|
subject { object.add(:bar, :baz) }
|
46
|
+
|
46
47
|
it { should eql(described_class.new(:foo, :bar, :baz)) }
|
47
48
|
end
|
48
49
|
|
49
50
|
context 'with duplicate attribute ' do
|
50
51
|
subject { object.add(:foo) }
|
52
|
+
|
51
53
|
it { should eql(object) }
|
52
54
|
end
|
53
55
|
end
|
@@ -67,10 +69,9 @@ describe Anima do
|
|
67
69
|
end
|
68
70
|
end
|
69
71
|
|
70
|
-
let(:value)
|
71
|
-
|
72
|
-
let(:
|
73
|
-
let(:instance_b) { target.new(foo: value) }
|
72
|
+
let(:value) { double('Value') }
|
73
|
+
let(:instance) { target.new(foo: value) }
|
74
|
+
let(:instance_b) { target.new(foo: value) }
|
74
75
|
let(:instance_c) { target.new(foo: double('Bar')) }
|
75
76
|
|
76
77
|
context 'on instance' do
|
@@ -94,9 +95,7 @@ describe Anima do
|
|
94
95
|
|
95
96
|
describe '#initialize_instance' do
|
96
97
|
let(:object) { Anima.new(:foo, :bar) }
|
97
|
-
|
98
98
|
let(:target) { Object.new }
|
99
|
-
|
100
99
|
let(:foo) { double('Foo') }
|
101
100
|
let(:bar) { double('Bar') }
|
102
101
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anima
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: adamantium
|