Module: Alki::Test
Class Method Summary collapse
Instance Method Summary collapse
- #app_root ⇒ Object
- #fixture_path(*fixture) ⇒ Object
- #fixtures_path ⇒ Object
- #lib_dir ⇒ Object
- #tests_root ⇒ Object
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_root ⇒ Object
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_path ⇒ Object
23 24 25 |
# File 'lib/alki/test.rb', line 23 def fixtures_path File.join tests_root, 'fixtures' end |
#lib_dir ⇒ Object
15 16 17 |
# File 'lib/alki/test.rb', line 15 def lib_dir File.join app_root, 'lib' end |
#tests_root ⇒ Object
19 20 21 |
# File 'lib/alki/test.rb', line 19 def tests_root File.join app_root, 'test' end |