Sha256: 66bbab648457a0e673f3946b564bc654bbf5f19398b5d6239feeade62180d783

Contents?: true

Size: 1.22 KB

Versions: 4

Compression:

Stored size: 1.22 KB

Contents

require 'rdf/spec'

share_as :RDF_Transaction do
  include RDF::Spec::Matchers

  before :each do
    raise '+@transaction+ must be defined in a before(:each) block' unless instance_variable_get('@transaction')
  end

  describe "#initialize" do
    it "accepts a graph"
    it "accepts a context"
    it "accepts inserts"
    it "accepts deletes"
  end
  
  describe "#graph" do
    it "is mutable"
  end
  
  describe "#deletes" do
    it "is mutable"
  end
  
  describe "#inserts" do
    it "is mutable"
  end
  
  describe "#readable?" do
    it "returns false" do
      @transaction.readable?.should be_false
    end
  end
  
  describe "#execute" do
    it "deletes statements"
    it "inserts statements"
    it "calls before_execute"
    it "calls after_execute"
    it "returns self"
    it "does not delete statements on failures"
    it "does not insert statements on failures"
  end
  
  describe "#delete_statement" do
    it "adds statement to #deletes"
    it "does not remove statement from graph"
  end
  
  describe "#insert_statement" do
    it "adds statement to #inserts"
    it "does not add statement to graph"
  end
  
  it "does not respond to #load"
  it "does not respond to #update"
  it "does not respond to #clear"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rdf-spec-0.3.8 lib/rdf/spec/transaction.rb
rdf-spec-0.3.7 lib/rdf/spec/transaction.rb
rdf-spec-0.3.5.1 lib/rdf/spec/transaction.rb
rdf-spec-0.3.5 lib/rdf/spec/transaction.rb