diff options
author | Pjotr Prins | 2016-09-25 10:51:43 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-09-25 10:51:43 +0000 |
commit | 71890299c9f8aecb269d8dd2647b85f0a82e91ff (patch) | |
tree | 928988d6e1536fc8781b010c3476ccce9496c118 /test | |
parent | f69c43a8900ac55218ec0fc9a6c00cf654190d6d (diff) | |
download | genenetwork2-71890299c9f8aecb269d8dd2647b85f0a82e91ff.tar.gz |
Test: should be a Post with parameters filled in
Diffstat (limited to 'test')
-rw-r--r-- | test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json | 2 | ||||
-rw-r--r-- | test/lib/mapping.rb | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json b/test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json index 2c4446ec..027e4d82 100644 --- a/test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json +++ b/test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json @@ -1,6 +1,6 @@ { "maf" : "0.01", "control_marker" : "mCV24506226", - "dataset" : "HC_M2_0606_P", + "dataset" : "HC_M2_0606_P", "do_control" : "false", "maf" : "0.01", "manhattan_plot" : "False", diff --git a/test/lib/mapping.rb b/test/lib/mapping.rb index bd88b88e..da580185 100644 --- a/test/lib/mapping.rb +++ b/test/lib/mapping.rb @@ -11,10 +11,11 @@ describe MappingTest do describe MappingTest do it "pyLMM mapping tool selection" do - url = $host+'/show_trait?trait_id=1435395_s_at&dataset=HC_M2_0606_P' - page = @agent.get(url) + url = $host+'/marker_regression?trait_id=1435395_s_at&dataset=HC_M2_0606_P' + page = @agent.post(url) json = JSON::load(File.read('test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json')) p json + p page # get the form # form = @agent.page.form_with(:name => "my-form") # get the button you want from the form |