summaryrefslogtreecommitdiff
path: root/test.rb
diff options
context:
space:
mode:
authorChristoph Helma <ch@in-silico.ch>2009-08-14 14:44:57 +0200
committerChristoph Helma <ch@in-silico.ch>2009-08-14 14:44:57 +0200
commit1fd85f5b8925e8fd8986497e9fab3a49acc64379 (patch)
tree9086a048bf864dc37374f28eb06a42b5545ffce5 /test.rb
parent26f689641023f4587bfe2af7975ee8d97af4a1df (diff)
Installation updated
Diffstat (limited to 'test.rb')
-rw-r--r--test.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test.rb b/test.rb
index 9995b94..2a0252f 100644
--- a/test.rb
+++ b/test.rb
@@ -17,14 +17,14 @@ class DatasetsTest < Test::Unit::TestCase
end
def test_create_dataset
- authorize "api", API_KEY
+ #authorize "api", API_KEY
post '/', :name => "Test dataset"
assert last_response.ok?
assert_equal "http://example.org/1", last_response.body.chomp
end
def test_create_dataset_and_insert_data
- authorize "api", API_KEY
+ #authorize "api", API_KEY
post '/', :name => "Test dataset"
post '/1', :compound_uri => "test_compound_uri", :feature_uri => "test_feature_uri"
get '/1'
@@ -34,9 +34,11 @@ class DatasetsTest < Test::Unit::TestCase
assert last_response.body.include?('test_feature_uri')
end
+=begin
def test_unauthorized_create
post '/', :name => "Test dataset"
assert !last_response.ok?
end
+=end
end