aboutsummaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorPjotr Prins2016-09-26 08:14:42 +0000
committerPjotr Prins2016-09-26 08:14:42 +0000
commitade0969bdc784d71d67d8422c6fd1238ed3ca391 (patch)
tree4304bda5a818805d19548ac242ef7c45919d41f3 /test/lib
parent1ab5479fa48d645f5b2e3899f7d5e568e4c6fcdc (diff)
downloadgenenetwork2-ade0969bdc784d71d67d8422c6fd1238ed3ca391.tar.gz
Test: mechanical Rob executes scanone test
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/mapping.rb14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/lib/mapping.rb b/test/lib/mapping.rb
index da580185..2678b127 100644
--- a/test/lib/mapping.rb
+++ b/test/lib/mapping.rb
@@ -5,16 +5,20 @@ end
describe MappingTest do
before do
- @agent = Mechanize.new
- @agent.agent.http.ca_file = '/etc/ssl/certs/ca-certificates.crt'
end
describe MappingTest do
it "pyLMM mapping tool selection" do
- url = $host+'/marker_regression?trait_id=1435395_s_at&dataset=HC_M2_0606_P'
- page = @agent.post(url)
+ url = $host+'/marker_regression' # ?trait_id=1435395_s_at&dataset=HC_M2_0606_P'
+ @agent = Mechanize.new
+ @agent.agent.http.ca_file = '/etc/ssl/certs/ca-certificates.crt'
+ # @agent.idle_timeout = 0.01
+
json = JSON::load(File.read('test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json'))
- p json
+ # p json
+ page = @agent.post(URI.encode(url),
+ json,
+ ({'Content-Type' => 'application/x-www-form-urlencoded'}))
p page
# get the form
# form = @agent.page.form_with(:name => "my-form")