Permalink
Browse files

fixed some specs

  • Loading branch information...
1 parent b510134 commit 439042186cda2a9d14e7dda995f0f9dba6fef201 @phifty committed Mar 28, 2010
Showing with 14 additions and 1 deletion.
  1. +13 −0 spec/fake_transport.yml
  2. +1 −1 spec/lib/allegro_graph/proxy/query_spec.rb
@@ -124,3 +124,16 @@
"values":
- [ "\"another_subject\"" ]
- [ "\"test_subject\"" ]
+-
+ :http_method: "get"
+ :url: "http://localhost:10035/catalogs/test_catalog/repositories/test_repository"
+ :parameters:
+ :query: "(select (?subject) (q- ?subject !<http://xmlns.com/foaf/0.1/knows> ?object))"
+ :queryLn: "prolog"
+ :response:
+ :code: "200"
+ :body:
+ "names": [ "subject" ]
+ "values":
+ - [ "\"another_subject\"" ]
+ - [ "\"test_subject\"" ]
@@ -50,7 +50,7 @@
it "should return the query result" do
@query.language = :prolog
- result = @query.perform "(select (?subject) (q- ?subject ?predicate ?object))"
+ result = @query.perform "(select (?subject) (q- ?subject !<http://xmlns.com/foaf/0.1/knows> ?object))"
result.should == {
"names" => [ "subject" ],
"values" => [ [ "\"another_subject\"" ], [ "\"test_subject\"" ] ]

0 comments on commit 4390421

Please sign in to comment.