Sha256: 78d717656e5b7a57662f3143e59a614d33570574156d8d7b54715d1162d8934c
Contents?: true
Size: 500 Bytes
Versions: 2
Compression:
Stored size: 500 Bytes
Contents
require File.expand_path('../test_helper.rb', File.dirname(__FILE__)) describe Tracker::SparqlCursor do describe "#get_string" do before do conn = Tracker::SparqlConnection.get @cursor = conn.query "SELECT 'Foo' { }", nil @cursor.next nil end it "returns just the string value" do @cursor.get_string(0).must_equal "Foo" end it "can safely be called twice" do @cursor.get_string(0) @cursor.get_string(0).must_equal "Foo" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-tracker-0.12.1 | test/unit/tracker_sparql_cursor_test.rb |
gir_ffi-tracker-0.12.0 | test/unit/tracker_sparql_cursor_test.rb |