Class: ApprovalTests::Reporters::DiffReporter

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/approval_tests/reporters/diff_reporter.rb

Instance Method Summary collapse

Instance Method Details

#approved_when_reportedObject



13
14
15
# File 'lib/approval_tests/reporters/diff_reporter.rb', line 13

def approved_when_reported()
  false 
end

#report(approved, received) ⇒ Object



8
9
10
11
# File 'lib/approval_tests/reporters/diff_reporter.rb', line 8

def report(approved, received)
 TextWriter.write_file(approved,"")  unless File.exists?(approved)
  exec "/Applications/DiffMerge.app/Contents/MacOS/DiffMerge --nosplash \"#{received}\" \"#{approved}\""
end