Skip to content

Commit

Permalink
Specing to_hash output
Browse files Browse the repository at this point in the history
  • Loading branch information
MGPalmer committed Mar 30, 2012
1 parent 3c6842e commit bf15a70
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion spec/masterplan_spec.rb
Expand Up @@ -149,7 +149,26 @@ def test_value_and_expect(testee, *error_and_descripton)
it "checks all array values one-to-one if the compare_each rule is used"
end

it "converts into plain example hashes"
it "converts into plain example hashes" do
@scheme.to_hash.should == {
"ship" => {
"parts" => [
{
"name" => "Mast",
"scream" => "AAAAAAH",
"length" => 12.3,
"material" => "wood"
},
{
"name" => "Rudder",
"scream" => "HAAAAAARGH",
"length" => nil,
"material" => "steel"
}
]
}
}
end
it "doesn't create a Document out of anything other than a Hash"
it "checks that the examples of rules obey the rules"
it "has a unit test extension method"
Expand Down

0 comments on commit bf15a70

Please sign in to comment.