File: insulate_file1.lua

package info (click to toggle)
lua-busted 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 820 kB
  • sloc: sh: 198; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'pl'

describe('Tests require "pl" in this file', function()
  it('loads global environment with "List"', function()
    assert.is_not_nil(List)  --luacheck: ignore
  end)
end)

describe('Tests require "cl_test_module" in another file', function()
  it('does not keep test_module in environment', function()
    assert.is_nil(test_module)   --luacheck: ignore
    assert.is_nil(package.loaded['spec.cl_test_module'])
  end)
end)