angular_sprinkles 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/angular_sprinkles.gemspec +2 -2
- data/lib/angular_sprinkles/directive/input.rb +3 -1
- data/spec/angular_sprinkles/directive/input_spec.rb +16 -4
- 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: f2f319c333ef62df99ce38f1283be024f3f14477
|
4
|
+
data.tar.gz: 849dfd932ebb1c60be65283e11ff205a58ed28da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd87b46e1bc7f03482f2bd517d1c843a23aa5710e658ee1ee22ca66f2ace9289e85049aaa97e94e5e289e83512202bd44648ce9475b1a850aad866b06ed3e7cd
|
7
|
+
data.tar.gz: 32af876fc588272a8dec951bf92a5d13684592be338097b9b07566c44bb9d20d6353038079d00ac6042466cfcd5edffdc8d9375c54949d831b7c80361f8bdc99
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.13
|
data/angular_sprinkles.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: angular_sprinkles 0.2.
|
5
|
+
# stub: angular_sprinkles 0.2.13 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "angular_sprinkles"
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.13"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -1,11 +1,23 @@
|
|
1
|
-
require
|
1
|
+
require "spec_helper"
|
2
2
|
|
3
3
|
describe AngularSprinkles::Directive::Input do
|
4
|
-
let(:args) { { key:
|
4
|
+
let(:args) { { key: value } }
|
5
5
|
|
6
6
|
subject { described_class.new(args) }
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
context "when the value is a string" do
|
9
|
+
let(:value) { "value" }
|
10
|
+
|
11
|
+
it "does nothing to the value" do
|
12
|
+
expect(subject.attributes).to eq({ data: args })
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
context "when the value is not a string" do
|
17
|
+
let(:value) { double(to_json: 1) }
|
18
|
+
|
19
|
+
it "turns the args hash into a jsonified data hash" do
|
20
|
+
expect(subject.attributes).to eq({ data: { key: 1 } })
|
21
|
+
end
|
10
22
|
end
|
11
23
|
end
|