Commit a4dbe7a4 authored by Fabio Pelosin's avatar Fabio Pelosin

[Specs] Fix YAML issues.

parent 50b8c088
...@@ -42,7 +42,7 @@ describe "Pod::Lockfile" do ...@@ -42,7 +42,7 @@ describe "Pod::Lockfile" do
File.open(tmp_path, 'w') {|f| f.write(sample) } File.open(tmp_path, 'w') {|f| f.write(sample) }
lockfile = Pod::Lockfile.from_file(tmp_path) lockfile = Pod::Lockfile.from_file(tmp_path)
lockfile.defined_in_file.should == tmp_path lockfile.defined_in_file.should == tmp_path
lockfile.to_yaml.should == sample lockfile.to_dict.should == YAML.load(sample)
end end
before do before do
...@@ -50,7 +50,7 @@ describe "Pod::Lockfile" do ...@@ -50,7 +50,7 @@ describe "Pod::Lockfile" do
end end
it "generates a valid YAML representation" do it "generates a valid YAML representation" do
@lockfile.to_yaml.should == sample YAML.load(@lockfile.to_yaml).should == YAML.load(sample)
end end
it "generates a valid Dictionary representation" do it "generates a valid Dictionary representation" do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment