blob: 5c38fd959e6a6860a8022776472e9dcb3f5994e0 (
plain)
1
2
3
4
5
6
7
8
9
|
require_relative '../../spec_helper'
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
|