Sha256: 7514e8d747bc1dcb66098c2d00bac99b7072151e7c37042b7e897f7430836bcb

Contents?: true

Size: 602 Bytes

Versions: 1

Compression:

Stored size: 602 Bytes

Contents

class Liza::ModuleTest < Liza::RubyTest
  
  test :subject_class do
    assert subject_class == Module
  end

  test :source_location do
    assert Object.source_location == []

    assert Liza::Command.source_location[1] == 1
    assert TerminalCommand.source_location[1] == 1
  end

  test :source_location_radical do
    assert Object.source_location_radical == nil

    assert Liza::Command.source_location_radical.end_with? "/lib/dev_system/dev/controllers/command"
    assert TerminalCommand.source_location_radical.end_with? "/lib/dev_system/dev/controllers/command/terminal_command"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lizarb-1.0.4 lib/liza/ruby_tests/module_test.rb