Class: ApprovalTests::Reporters::RspecReporter

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

Instance Method Summary collapse

Instance Method Details

#report(app, rec) ⇒ Object



8
9
10
11
12
13
# File 'lib/approval_tests/reporters/rspec_reporter.rb', line 8

def report(app, rec)
  approved = ""
  approved = File.read(app) if File.exists?(app)
  received = File.read(rec)
  received.should == approved
end