lib/cucumber/pro/formatter.rb in cucumber-pro-0.0.8 vs lib/cucumber/pro/formatter.rb in cucumber-pro-0.0.9
- old
+ new
@@ -1,6 +1,6 @@
-require 'cucumber/pro/scm'
+require 'cucumber/pro/scm/working_copy'
require 'cucumber/pro/info'
require 'securerandom'
module Cucumber
module Pro
@@ -51,14 +51,15 @@
end
private
def send_header
- scm = Scm::Repo.find
+ working_copy = Scm::WorkingCopy.detect
+ working_copy.check_clean
@session.send({
- repo_url: scm.remote,
- branch: scm.branch,
- rev: scm.rev,
+ repo_url: working_copy.repo_url,
+ branch: working_copy.branch,
+ rev: working_copy.rev,
group: get_run_id,
info: Info.new.to_h
})
end