Sha256: b7c38977bb13945a31178ce7cbbaf19203b1de725f23109148f7f7f05bc5f184

Contents?: true

Size: 268 Bytes

Versions: 4

Compression:

Stored size: 268 Bytes

Contents

require "spec_helper"
require "rb_toolbox/struct"

Point = RbToolbox::Struct.new(:x, :y)

module RbToolbox
  describe Struct do
    context "Initialization" do
      Given(:p) { Point.new(x: 5, y: 6) }
      Then { p.x == 5 }
      Then { p.y == 6 }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rb_toolbox-0.0.5 spec/rb_toolbox/struct_spec.rb
rb_toolbox-0.0.4 spec/rb_toolbox/struct_spec.rb
rb_toolbox-0.0.3 spec/rb_toolbox/struct_spec.rb
rb_toolbox-0.0.2 spec/rb_toolbox/struct_spec.rb