Module: RSpec::Approvals

Defined in:
lib/rspec/approvals.rb,
lib/rspec/approvals/cli.rb,
lib/rspec/approvals/dsl.rb,
lib/rspec/approvals/dotfile.rb,
lib/rspec/approvals/version.rb,
lib/rspec/approvals/approval.rb,
lib/rspec/approvals/formatter.rb,
lib/rspec/approvals/executable.rb,
lib/rspec/approvals/empty_approval.rb

Defined Under Namespace

Modules: DSL Classes: Approval, CLI, Dotfile, EmptyApproval, Executable, Formatter, ReceivedDiffersError

Constant Summary collapse

VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.initialize_approvals_pathObject


20
21
22
# File 'lib/rspec/approvals.rb', line 20

def initialize_approvals_path
  FileUtils.makedirs(RSpec.configuration.approvals_path) unless Dir.exists?(RSpec.configuration.approvals_path)
end

.pathObject


24
25
26
# File 'lib/rspec/approvals.rb', line 24

def path
  RSpec.configuration.approvals_path + "/"
end

.resetObject


28
29
30
# File 'lib/rspec/approvals.rb', line 28

def reset
  Dotfile.reset
end