diff options
Diffstat (limited to 'test/model.rb')
-rw-r--r-- | test/model.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/model.rb b/test/model.rb index 0d9e812..027c9df 100644 --- a/test/model.rb +++ b/test/model.rb @@ -69,10 +69,10 @@ class ModelTest < MiniTest::Test assert c.type.to_s =~ /Endpoint/ puts c.uri # necessary since model.all method is abolished - urilist = `curl -k GET -H accept:text/plain #{$model[:uri]}`.chomp + urilist = `curl -k GET -H accept:text/plain -H 'subjectid:#{OpenTox::RestClientWrapper.subjectid}' #{$model[:uri]}`.chomp assert_match c.uri, urilist a.delete - urilist = `curl -k GET -H accept:text/plain #{$model[:uri]}`.chomp + urilist = `curl -k GET -H accept:text/plain -H 'subjectid:#{OpenTox::RestClientWrapper.subjectid}' #{$model[:uri]}`.chomp refute_match c.uri, urilist end end |