aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/core/struct/size_spec.rb
blob: 29b1d2bfba671dee1e975944e2a266b8bffc87c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
require File.expand_path('../shared/accessor', __FILE__)

describe "Struct#size" do
  it "is a synonym for length" do
    StructClasses::Car.new.size.should == StructClasses::Car.new.length
  end

  it_behaves_like :struct_accessor, :size
end