blob: cdc1564699c98f9a249efc99973c600df696076f (
plain)
1
2
3
4
5
6
7
8
9
|
require File.expand_path('../../../spec_helper', __FILE__)
require "ostruct"
describe "OpenStruct#marshal_dump" do
it "returns the method/value table" do
os = OpenStruct.new("age" => 20, "name" => "John")
os.marshal_dump.should == { age: 20, name: "John" }
end
end
|