Module: DoSnapshot::RSpec

Defined in:
lib/do_snapshot/rspec.rb,
lib/do_snapshot/rspec/adapter.rb,
lib/do_snapshot/rspec/api_helpers.rb,
lib/do_snapshot/rspec/environment.rb,
lib/do_snapshot/rspec/uri_helpers.rb,
lib/do_snapshot/rspec/api_v2_helpers.rb

Overview

rubocop:disable Style/Documentation

Defined Under Namespace

Modules: Adapter, ApiHelpers, ApiV2Helpers, Environment, UriHelpers

Class Method Summary collapse

Class Method Details

.fixture(fixture_name) ⇒ Object



16
17
18
# File 'lib/do_snapshot/rspec.rb', line 16

def self.fixture(fixture_name)
  Pathname.new(project_path + '/lib/do_snapshot/rspec/fixtures/digitalocean/').join("#{fixture_name}.json").read
end

.project_pathObject



12
13
14
# File 'lib/do_snapshot/rspec.rb', line 12

def self.project_path
  File.expand_path('../../..', __FILE__)
end