Sha256: 4998c0cba7560abb943b92e34b5418461c84a309eab1201fe23c3a114a74a2b7
Contents?: true
Size: 511 Bytes
Versions: 8
Compression:
Stored size: 511 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_direct nil @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
8 entries across 8 versions & 1 rubygems