Sha256: af04337dcb2ad87550fedfd1fcf4d12e88bedc7c309bc0c7c05e83a376680190

Contents?: true

Size: 386 Bytes

Versions: 9

Compression:

Stored size: 386 Bytes

Contents

require_relative '../../helper'

describe Tk::Tile::Label do
  it 'initializes' do
    instance = Tk::Tile::Label.new
    instance.class.should == Tk::Tile::Label
    instance.tk_parent.should == Tk.root
  end

  it 'assigns a value' do
    label = Tk::Tile::Label.new
    label.value.should == nil
    label.value = 'Hello, World!'
    label.value.should == 'Hello, World!'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffi-tk-2010.08.23 spec/ffi-tk/tile/label.rb
ffi-tk-2010.08 spec/ffi-tk/tile/label.rb
ffi-tk-2010.06 spec/ffi-tk/tile/label.rb
ffi-tk-2010.03 spec/ffi-tk/tile/label.rb
ffi-tk-2010.02 spec/ffi-tk/tile/label.rb
ffi-tk-2010.01 spec/ffi-tk/tile/label.rb
ffi-tk-2010.01.02 spec/ffi-tk/tile/label.rb
ffi-tk-2009.12.14 spec/ffi-tk/tile/label.rb
ffi-tk-2009.11.29 spec/ffi-tk/tile/label.rb