spec/ffi-tk/tile/label.rb in ffi-tk-2010.08.23 vs spec/ffi-tk/tile/label.rb in ffi-tk-2018.02.20
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
require_relative '../../helper'
describe Tk::Tile::Label do
it 'initializes' do
instance = Tk::Tile::Label.new
@@ -7,11 +8,10 @@
instance.tk_parent.should == Tk.root
end
it 'assigns a value' do
label = Tk::Tile::Label.new
- label.value.should == nil
+ label.value.should.nil?
label.value = 'Hello, World!'
label.value.should == 'Hello, World!'
end
end
-