Sha256: b63b4f7fde89f454abf7da3a1a1fc2cdfc50a2c4835dd19fc4ec0c1b8be2d440
Contents?: true
Size: 721 Bytes
Versions: 2
Compression:
Stored size: 721 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Daijobu::Scheme::Raw do before do @scheme = Daijobu::Scheme::Raw.new end describe "#parse" do before do @stringy = '{ "thing" => 10 }' end it "should do nothing to the given string" do @scheme.parse(@stringy).should == @stringy end describe "when the input string is nil" do it "should return nil" do @scheme.parse(nil).should be_nil end end end describe "#unparse" do before do @hashy = { "thing" => 10 } end it "should do nothing to the given object" do @scheme.unparse(@hashy).should == @hashy end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sander6-daijobu-0.2.0 | spec/daijobu/schemes/raw_spec.rb |
sander6-daijobu-0.2.1 | spec/daijobu/schemes/raw_spec.rb |