Module: Alki::Test

Extended by:
Test
Included in:
Test, Minitest::Spec
Defined in:
lib/alki/test.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.app(&blk) ⇒ Object



15
16
17
18
19
# File 'lib/alki/feature_test.rb', line 15

def app(&blk)
  feature_exec do
    define_method(:app,&blk)
  end
end

.feature_exec(&blk) ⇒ Object



11
12
13
# File 'lib/alki/feature_test.rb', line 11

def feature_exec(&blk)
  Alki::FeatureSpec.class_exec(&blk)
end

Instance Method Details

#app_rootObject



11
12
13
# File 'lib/alki/test.rb', line 11

def app_root
  Bundler.root
end

#fixture_path(*fixture) ⇒ Object



27
28
29
# File 'lib/alki/test.rb', line 27

def fixture_path(*fixture)
  File.join fixtures_path, *fixture
end

#fixtures_pathObject



23
24
25
# File 'lib/alki/test.rb', line 23

def fixtures_path
  File.join tests_root, 'fixtures'
end

#lib_dirObject



15
16
17
# File 'lib/alki/test.rb', line 15

def lib_dir
  File.join app_root, 'lib'
end

#tests_rootObject



19
20
21
# File 'lib/alki/test.rb', line 19

def tests_root
  File.join app_root, 'test'
end