dynameek 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/dynameek/model/dynamo_db.rb +5 -0
- data/lib/dynameek/version.rb +1 -1
- data/test/spec/simple_spec.rb +12 -0
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/lib/dynameek/version.rb
CHANGED
data/test/spec/simple_spec.rb
CHANGED
@@ -19,6 +19,18 @@ describe Simple do
|
|
19
19
|
con = Simple.find(1)
|
20
20
|
con.binary_value[:hello].should == :sup
|
21
21
|
end
|
22
|
+
it "should allow you to store binary data removing default_proc" do
|
23
|
+
con = nil
|
24
|
+
hsh = Hash.new{|h, k| h[k] = :a}
|
25
|
+
hsh[:hello] = :sup
|
26
|
+
lambda{
|
27
|
+
con = Simple.create(:my_id => 1, :some_value => "hello", :binary_value => hsh)
|
28
|
+
}.should_not raise_error
|
29
|
+
con.hash_key.should == 1
|
30
|
+
con.some_value.should == "hello"
|
31
|
+
con = Simple.find(1)
|
32
|
+
con.binary_value[:hello].should == :sup
|
33
|
+
end
|
22
34
|
it "should allow you to create a new simple" do
|
23
35
|
con = nil
|
24
36
|
lambda{
|