Sha256: 610ade9c6b818f917663955d0fae0e9ba8e20e442bc1aa209b9b6c7a68bc3a7b
Contents?: true
Size: 692 Bytes
Versions: 3
Compression:
Stored size: 692 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper')) describe DataObjects::Command do before do @connection = DataObjects::Connection.new('mock://localhost') @command = DataObjects::Command.new(@connection, 'SQL STRING') end after do @connection.close end %w{connection execute_non_query execute_reader set_types}.each do |meth| it "should respond to ##{meth}" do @command.should.respond_to(meth.intern) end end %w{execute_non_query execute_reader set_types}.each do |meth| it "should raise NotImplementedError on ##{meth}" do should.raise(NotImplementedError) { @command.send(meth.intern, nil) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
data_objects-0.10.3 | spec/command_spec.rb |
data_objects-0.10.2 | spec/command_spec.rb |
data_objects-0.10.1 | spec/command_spec.rb |