Sha256: 1e03a0261babd684bb111c21b7b668888c4a760951eac069b21fc5ecd080dc1e

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 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 AppCommand.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 AppCommand.source_location_radical.end_with? "/app/dev/commands/app_command"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

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