summaryrefslogtreecommitdiff
path: root/spec/ruby/core/data/deconstruct_spec.rb
blob: 4ca0b870396a5c367a8ef56e7f1a4001bddade06 (plain)
1
2
3
4
5
6
7
8
require_relative '../../spec_helper'
require_relative 'fixtures/classes'

describe "Data#deconstruct" do
  it "returns an array of attribute values" do
    DataSpecs::Measure.new(42, "km").deconstruct.should == [42, "km"]
  end
end