File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Gem::Specification.new do |s|
25
25
s . add_dependency "rspec" , "~> 2.12.0"
26
26
s . add_dependency "selenium-webdriver" , "~> 2.27.2"
27
27
s . add_dependency "ci_reporter" , "~> 1.8.3"
28
+ s . add_dependency "rest-client" , "~> 1.6.7"
28
29
29
30
s . add_development_dependency "rspec" , "~> 2.12.0"
30
31
s . add_development_dependency "rake" , "~> 10.0.3"
Original file line number Diff line number Diff line change 1
1
require 'rspec/core/shared_context'
2
2
require File . join ( Dir . getwd , '_config' , 'requires' )
3
+ require 'restclient'
3
4
4
5
module ChemistryKit
5
6
module SharedContext
@@ -78,13 +79,15 @@ def executor
78
79
end
79
80
}
80
81
example_tags . compact!
81
- puts self . example . exception
82
+ # puts self.example.exception
82
83
payload = {
83
84
:tags => example_tags ,
84
85
:name => self . example . metadata [ :full_description ] ,
85
86
:passed => self . example . exception ? false : true
86
87
}
87
- puts payload . to_json
88
+ api_url = "http://#{ SAUCE_CONFIG [ 'username' ] } :#{ SAUCE_CONFIG [ 'key' ] } @saucelabs.com:80/rest/v1/#{ SAUCE_CONFIG [ 'username' ] } /jobs/#{ session_id } "
89
+ RestClient . put api_url , payload . to_json , { :content_type => :json }
90
+ # puts payload.to_json
88
91
end
89
92
end
90
93
end
You can’t perform that action at this time.
0 commit comments