Sha256: d4c81905d704d2be98a7a951623080c8b58acbb295519c5a7c503a981727c21f
Contents?: true
Size: 417 Bytes
Versions: 4
Compression:
Stored size: 417 Bytes
Contents
covers 'facets/kernel/temporarily' tests Kernel do unit :temporarily => "global variable" do $temporary_variable = true temporarily('$temporary_variable'=>false) do $temporary_variable.assert == false end $temporary_variable.assert == true end unit :temporarily => "instance variable" do @x = 1 temporarily('@x'=>2) do @x.assert == 2 end @x.assert == 1 end end
Version data entries
4 entries across 4 versions & 1 rubygems