adapter 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +1 -0
- data/Gemfile +1 -0
- data/lib/adapter/spec/an_adapter.rb +6 -6
- data/lib/adapter/version.rb +1 -1
- metadata +4 -3
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
CHANGED
@@ -6,6 +6,8 @@ shared_examples_for "an adapter" do
|
|
6
6
|
let(:key) { 'key' }
|
7
7
|
let(:key2) { 'key2' }
|
8
8
|
|
9
|
+
let(:unavailable_key) { 'foo' }
|
10
|
+
|
9
11
|
let(:attributes) {
|
10
12
|
{
|
11
13
|
'one' => 'one',
|
@@ -82,7 +84,7 @@ shared_examples_for "an adapter" do
|
|
82
84
|
|
83
85
|
context "with mix of keys that are and are not available" do
|
84
86
|
it "returns Hash of keys and attributes where unavailable keys are nil" do
|
85
|
-
result = adapter.read_multiple(key, key2,
|
87
|
+
result = adapter.read_multiple(key, key2, unavailable_key)
|
86
88
|
|
87
89
|
attributes.each do |column, value|
|
88
90
|
result[key][column].should eq(value)
|
@@ -92,8 +94,7 @@ shared_examples_for "an adapter" do
|
|
92
94
|
result[key2][column].should eq(value)
|
93
95
|
end
|
94
96
|
|
95
|
-
result[
|
96
|
-
result['bar'].should be_nil
|
97
|
+
result[unavailable_key].should be_nil
|
97
98
|
end
|
98
99
|
end
|
99
100
|
end
|
@@ -118,7 +119,7 @@ shared_examples_for "an adapter" do
|
|
118
119
|
|
119
120
|
context "with mix of keys that are and are not available" do
|
120
121
|
it "returns Hash of keys and attributes where unavailable keys are nil" do
|
121
|
-
result = adapter.get_multiple(key, key2,
|
122
|
+
result = adapter.get_multiple(key, key2, unavailable_key)
|
122
123
|
|
123
124
|
attributes.each do |column, value|
|
124
125
|
result[key][column].should eq(value)
|
@@ -128,8 +129,7 @@ shared_examples_for "an adapter" do
|
|
128
129
|
result[key2][column].should eq(value)
|
129
130
|
end
|
130
131
|
|
131
|
-
result[
|
132
|
-
result['bar'].should be_nil
|
132
|
+
result[unavailable_key].should be_nil
|
133
133
|
end
|
134
134
|
end
|
135
135
|
end
|
data/lib/adapter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -23,6 +23,7 @@ extensions: []
|
|
23
23
|
extra_rdoc_files: []
|
24
24
|
files:
|
25
25
|
- .gitignore
|
26
|
+
- .rspec
|
26
27
|
- .travis.yml
|
27
28
|
- Changelog.md
|
28
29
|
- Gemfile
|
@@ -60,7 +61,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
61
|
version: '0'
|
61
62
|
segments:
|
62
63
|
- 0
|
63
|
-
hash: -
|
64
|
+
hash: -2517680181409283620
|
64
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
66
|
none: false
|
66
67
|
requirements:
|
@@ -69,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
70
|
version: '0'
|
70
71
|
segments:
|
71
72
|
- 0
|
72
|
-
hash: -
|
73
|
+
hash: -2517680181409283620
|
73
74
|
requirements: []
|
74
75
|
rubyforge_project:
|
75
76
|
rubygems_version: 1.8.23
|