locomotivecms_coal 1.0.0.pre.alpha.2 → 1.0.0.pre.alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/locomotive/coal/resource.rb +4 -0
- data/lib/locomotive/coal/version.rb +1 -1
- data/spec/unit/resource_spec.rb +11 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2d33fc0152aa303a2de3a82826a9b4b3d153ff8
|
4
|
+
data.tar.gz: 5d9720c5e28c435a0b0d299eb437477779deaf33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 492dda6e3af90dd2438d0a3f4f5057bd4aa4e449fbe22e5945369cb60da0e59e4016759267572b96e1657aaad14228a8bf971ba190c677836c622c09ba69cfca
|
7
|
+
data.tar.gz: e13be9b37035568852e0484e18a89dbb1094b46624059a3efce9387cf197d88a0639aba03d9be8fa2798c2e91cb7c07ccbff2b92584e4c8e5369d7a605a15e6f
|
data/Gemfile.lock
CHANGED
data/spec/unit/resource_spec.rb
CHANGED
@@ -15,4 +15,15 @@ describe Locomotive::Coal::Resource do
|
|
15
15
|
it { is_expected.to eq 'Hello world' }
|
16
16
|
end
|
17
17
|
|
18
|
+
describe '#respond_to?' do
|
19
|
+
let(:name) { :title }
|
20
|
+
subject { resource.respond_to?(name) }
|
21
|
+
it { is_expected.to eq true }
|
22
|
+
|
23
|
+
context 'unknown attribute' do
|
24
|
+
let(:name) { :body }
|
25
|
+
it { is_expected.to eq false }
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
18
29
|
end
|