ccp 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,27 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- require 'spec_helper'
3
- require 'fileutils'
4
-
5
- describe Ccp::Serializers::Yaml do
6
- its(:ext) { should == "yaml" }
7
-
8
- describe "with Array(Integer)" do
9
- it "should encode" do
10
- subject.encode([1,2,3]).should == "--- \n- 1\n- 2\n- 3\n"
11
- end
12
-
13
- it "should decode" do
14
- subject.decode("--- \n- 1\n- 2\n- 3\n").should == [1,2,3]
15
- end
16
- end
17
-
18
- describe "with {String => Integer}" do
19
- it "should encode" do
20
- subject.encode("foo" => 1).should == "--- \nfoo: 1\n"
21
- end
22
-
23
- it "should decode" do
24
- subject.decode("--- \nfoo: 1\n").should == {"foo" => 1}
25
- end
26
- end
27
- end