RSpec Code Examples

 

 

RDF::DataObjects::Repository The SQLite adapter when counting statements when counting items
should respond to #empty?
should respond to #count and #size
should implement #empty?
should implement #count and #size
RDF::DataObjects::Repository The SQLite adapter when enumerating statements when counting statements
should respond to #empty?
should respond to #count and #size
should implement #empty?
should implement #count and #size
RDF::DataObjects::Repository The SQLite adapter when enumerating statements when enumerating statements
should respond to #statements
should respond to #has_statement?
should respond to #each_statement
should respond to #enum_statement
should implement #statements
should implement #has_statement?
should implement #each_statement
should implement #enum_statement
RDF::DataObjects::Repository The SQLite adapter when enumerating statements when enumerating triples
should respond to #triples
should respond to #has_triple?
should respond to #each_triple
should respond to #enum_triple
should implement #triples
should implement #has_triple?
should implement #each_triple
should implement #enum_triple
RDF::DataObjects::Repository The SQLite adapter when enumerating statements when enumerating quads
should respond to #quads
should respond to #has_quad?
should respond to #each_quad
should respond to #enum_quad
should implement #quads
should implement #has_quad?
should implement #each_quad
should implement #enum_quad
RDF::DataObjects::Repository The SQLite adapter when enumerating statements when enumerating subjects
should respond to #subjects
should respond to #has_subject?
should respond to #each_subject
should respond to #enum_subject
should implement #subjects
should implement #has_subject?
should implement #each_subject
should implement #enum_subject
RDF::DataObjects::Repository The SQLite adapter when enumerating statements when enumerating predicates
should respond to #predicates
should respond to #has_predicate?
should respond to #each_predicate
should respond to #enum_predicate
should implement #predicates
should implement #has_predicate?
should implement #each_predicate
should implement #enum_predicate
RDF::DataObjects::Repository The SQLite adapter when enumerating statements when enumerating objects
should respond to #objects
should respond to #has_object?
should respond to #each_object
should respond to #enum_object
should implement #objects
should implement #has_object?
should implement #each_object
should implement #enum_object
RDF::DataObjects::Repository The SQLite adapter when enumerating statements when enumerating contexts
should respond to #contexts
should respond to #has_context?
should respond to #each_context
should respond to #enum_context
should implement #contexts
should implement #has_context?
should implement #each_context
should implement #enum_context
RDF::DataObjects::Repository The SQLite adapter when enumerating statements when enumerating graphs
should respond to #each_graph
should respond to #enum_graph
should implement #each_graph
should implement #enum_graph
RDF::DataObjects::Repository The SQLite adapter when enumerating statements when converting
should respond to #to_hash
should implement #to_hash
RDF::DataObjects::Repository The SQLite adapter when querying statements
should respond to #query
should respond to #query_pattern
should respond to #first
should respond to #first_subject
should respond to #first_predicate
should respond to #first_object
should respond to #first_literal
should respond to #first_value
RDF::DataObjects::Repository The SQLite adapter when querying statements#query when called
should require an argument
should accept a pattern argument
should accept a statement argument
should accept a triple argument
should accept a quad argument
should accept a hash argument
should not alter a given hash argument
should reject other kinds of arguments
RDF::DataObjects::Repository The SQLite adapter when querying statements#query when called with a block
should yield statements
RDF::DataObjects::Repository The SQLite adapter when querying statements#query when called without a block
should return an enumerator
should return an enumerable enumerator
should return a queryable enumerator
should return statements
should return the correct number of results for array queries
should return the correct number of results for hash queries
RDF::DataObjects::Repository The SQLite adapter when querying statements#query_pattern when called
should require an argument
should call the given block
should yield statements
RDF::DataObjects::Repository The SQLite adapter when querying statements#first
should be callable without a pattern
should return the correct value when the pattern matches
should return nil when the pattern fails to match anything
should return nil when self is empty
RDF::DataObjects::Repository The SQLite adapter when querying statements#first_subject
should be callable without a pattern
should return the correct value when the pattern matches
should return nil when the pattern fails to match anything
should return nil when self is empty
RDF::DataObjects::Repository The SQLite adapter when querying statements#first_predicate
should be callable without a pattern
should return the correct value when the pattern matches
should return nil when the pattern fails to match anything
should return nil when self is empty
RDF::DataObjects::Repository The SQLite adapter when querying statements#first_object
should be callable without a pattern
should return the correct value when the pattern matches
should return nil when the pattern fails to match anything
should return nil when self is empty
RDF::DataObjects::Repository The SQLite adapter when querying statements#first_literal
should be callable without a pattern
should return the correct value when the pattern matches
should return nil when the pattern fails to match anything
should return nil when self is empty
RDF::DataObjects::Repository The SQLite adapter when querying statements#first_value
should be callable without a pattern
should return the correct value when the pattern matches
should return nil when the pattern fails to match anything
should return nil when self is empty
RDF::DataObjects::Repository The SQLite adapter when updating
should be empty initially
should be readable
should be writable
should be mutable
should support #load
RDF::DataObjects::Repository The SQLite adapter when updating#load
should require an argument
should accept a string filename argument
should accept an optional hash argument
should load statements
should load statements with a context override
RDF::DataObjects::Repository The SQLite adapter when updating when inserting statements
should support #insert
should not raise errors
should support inserting one statement at a time
should support inserting multiple statements at a time
should insert statements successfully
should not insert a statement twice
should treat statements with a different context as distinct
RDF::DataObjects::Repository The SQLite adapter when updating when deleting statements
should support #delete
should not raise errors
should support deleting one statement at a time
should support deleting multiple statements at a time
should support wildcard deletions
should only delete statements when the context matches
RDF::DataObjects::Repository The SQLite adapter when updating when clearing all statements
should support #clear
RDF::DataObjects::Repository The SQLite adapter as a durable repository
should support #durable?
Could not load a DataObjects adapter for sqlite3:test.db.  You may need to add a 'require do_adapter', or you may be trying to use an unsupported adapter (Currently supporting postgres, sqlite3).  The error message was: unable to open database file
/app/spec/sqlite3.spec:8:in `new'
/app/spec/sqlite3.spec:8:in `block (4 levels) in '
config.ru:23:in `block (4 levels) in 
' /home/heroku_rack/lib/static_assets.rb:9:in `call' /home/heroku_rack/lib/static_assets.rb:9:in `call' /home/heroku_rack/lib/last_access.rb:15:in `call' /home/heroku_rack/lib/date_header.rb:14:in `call' /usr/ruby1.9.1/bin/thin:19:in `load' /usr/ruby1.9.1/bin/thin:19:in `
'
6    before :each do
7      @repository = RDF::DataObjects::Repository.new "sqlite3://:memory:"
8      @load_durable = lambda { RDF::DataObjects::Repository.new "sqlite3:test.db" }
9    end
10
11# gem install syntax to get syntax highlighting
should support #nondurable?
Could not load a DataObjects adapter for sqlite3:test.db.  You may need to add a 'require do_adapter', or you may be trying to use an unsupported adapter (Currently supporting postgres, sqlite3).  The error message was: unable to open database file
/app/spec/sqlite3.spec:8:in `new'
/app/spec/sqlite3.spec:8:in `block (4 levels) in '
config.ru:23:in `block (4 levels) in 
' /home/heroku_rack/lib/static_assets.rb:9:in `call' /home/heroku_rack/lib/static_assets.rb:9:in `call' /home/heroku_rack/lib/last_access.rb:15:in `call' /home/heroku_rack/lib/date_header.rb:14:in `call' /usr/ruby1.9.1/bin/thin:19:in `load' /usr/ruby1.9.1/bin/thin:19:in `
'
6    before :each do
7      @repository = RDF::DataObjects::Repository.new "sqlite3://:memory:"
8      @load_durable = lambda { RDF::DataObjects::Repository.new "sqlite3:test.db" }
9    end
10
11# gem install syntax to get syntax highlighting
should not be both durable and nondurable
Could not load a DataObjects adapter for sqlite3:test.db.  You may need to add a 'require do_adapter', or you may be trying to use an unsupported adapter (Currently supporting postgres, sqlite3).  The error message was: unable to open database file
/app/spec/sqlite3.spec:8:in `new'
/app/spec/sqlite3.spec:8:in `block (4 levels) in '
config.ru:23:in `block (4 levels) in 
' /home/heroku_rack/lib/static_assets.rb:9:in `call' /home/heroku_rack/lib/static_assets.rb:9:in `call' /home/heroku_rack/lib/last_access.rb:15:in `call' /home/heroku_rack/lib/date_header.rb:14:in `call' /usr/ruby1.9.1/bin/thin:19:in `load' /usr/ruby1.9.1/bin/thin:19:in `
'
6    before :each do
7      @repository = RDF::DataObjects::Repository.new "sqlite3://:memory:"
8      @load_durable = lambda { RDF::DataObjects::Repository.new "sqlite3:test.db" }
9    end
10
11# gem install syntax to get syntax highlighting
should save contents between instantiations
Could not load a DataObjects adapter for sqlite3:test.db.  You may need to add a 'require do_adapter', or you may be trying to use an unsupported adapter (Currently supporting postgres, sqlite3).  The error message was: unable to open database file
/app/spec/sqlite3.spec:8:in `new'
/app/spec/sqlite3.spec:8:in `block (4 levels) in '
config.ru:23:in `block (4 levels) in 
' /home/heroku_rack/lib/static_assets.rb:9:in `call' /home/heroku_rack/lib/static_assets.rb:9:in `call' /home/heroku_rack/lib/last_access.rb:15:in `call' /home/heroku_rack/lib/date_header.rb:14:in `call' /usr/ruby1.9.1/bin/thin:19:in `load' /usr/ruby1.9.1/bin/thin:19:in `
'
6    before :each do
7      @repository = RDF::DataObjects::Repository.new "sqlite3://:memory:"
8      @load_durable = lambda { RDF::DataObjects::Repository.new "sqlite3:test.db" }
9    end
10
11# gem install syntax to get syntax highlighting