medea 0.6.1 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/medea/jason_blob.rb +1 -0
- data/lib/medea/version.rb +1 -1
- data/spec/jason_blob_spec.rb +3 -3
- metadata +2 -2
data/lib/medea/jason_blob.rb
CHANGED
data/lib/medea/version.rb
CHANGED
data/spec/jason_blob_spec.rb
CHANGED
@@ -18,14 +18,14 @@ describe "Jason Blob" do
|
|
18
18
|
@update.avatar = "Here's some text!"
|
19
19
|
@update.save!
|
20
20
|
u2 = Update.get_by_key(@update.jason_key)
|
21
|
-
u2.avatar.should eq("Here's some text!")
|
22
|
-
u2.avatar.size.should eq("Here's some text!".size)
|
21
|
+
u2.avatar.contents.should eq("Here's some text!")
|
22
|
+
u2.avatar.contents.size.should eq("Here's some text!".size)
|
23
23
|
end
|
24
24
|
|
25
25
|
it "should work for larger images" do
|
26
26
|
f = File.new("./spec/test.jpg", "r")
|
27
27
|
@update.avatar = f
|
28
28
|
@update.save!
|
29
|
-
Update.get_by_key(@update.jason_key).avatar.size.should eq(f.size)
|
29
|
+
Update.get_by_key(@update.jason_key).avatar.contents.size.should eq(f.size)
|
30
30
|
end
|
31
31
|
end
|