```ruby
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
```

Update test to fetch connection the Tracker 2.0 way
user
```ruby
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
```
assistant