require "spec_helper" describe "TopLevel" do describe "to_hash" do it "return only the hash data" do @scope = Expressive::TopLevel.new @scope["hello"] = "world" @scope.to_hash.should eql({"hello" => "world"}) end end end