Sha256: 50961ecc10a63ed332d12b81fc90b5b660c01778fd231158001d84232e66e683
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
require 'rspec/expectations' require 'aruba/cucumber' require 'bundle_depot' World(RSpec::Matchers) def local_cache_path File.join(BundleDepot::Cache::DEFAULT_BUNDLE_DEPOT_PATH, "cache") end def remote_cache_path File.join(BundleDepot::Cache::DEFAULT_BUNDLE_DEPOT_PATH, "remote") end def fixture_project_path(project) File.expand_path(File.join(File.dirname(__FILE__), '../../fixtures/project', project)) end def fixtures_bundle_home_path(bundle) File.expand_path(File.join(File.dirname(__FILE__), '../../fixtures/bundle', bundle)) end def fixtures_bundle_path(bundle) File.join(fixtures_bundle_home_path(bundle), fixtures_bundle_name(bundle)) end def fixtures_packed_bundle_path(bundle) fixtures_bundle_path(bundle) + ".tar.gz" end def fixtures_bundle_name(bundle) File.basename(Dir.glob(File.join(fixtures_bundle_home_path(bundle), "*")).first) end def local_cache_bundle_path(bundle) File.join(local_cache_path, fixtures_bundle_name(bundle)) end def remote_cache_packed_bundle_path(bundle) File.join(remote_cache_path, fixtures_bundle_name(bundle) + ".tar.gz") end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bundle_depot-0.0.3 | features/support/env.rb |
bundle_depot-0.0.2 | features/support/env.rb |
bundle_depot-0.0.1 | features/support/env.rb |