Sha256: 8f6cac9664178409a3dcdedf14a4787b45fcbd35b1c05269f5396b0159438441

Contents?: true

Size: 705 Bytes

Versions: 18

Compression:

Stored size: 705 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
      lambda { @command.send(meth.intern, nil) }.should raise_error(NotImplementedError)
    end
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
data_objects-0.10.17 spec/command_spec.rb
data_objects-0.10.16 spec/command_spec.rb
data_objects-0.10.15 spec/command_spec.rb
data_objects-0.10.14 spec/command_spec.rb
data_objects-0.10.13 spec/command_spec.rb
data_objects-0.10.12 spec/command_spec.rb
data_objects-0.10.11 spec/command_spec.rb
data_objects-0.10.10 spec/command_spec.rb
data_objects-0.10.9 spec/command_spec.rb
data_objects-0.10.8 spec/command_spec.rb
data_objects-0.10.7 spec/command_spec.rb
data_objects-0.10.6 spec/command_spec.rb
data_objects-0.10.5 spec/command_spec.rb
data_objects-0.10.4 spec/command_spec.rb
data_objects-0.10.4.rc2 spec/command_spec.rb
data_objects-0.10.4.rc1 spec/command_spec.rb
data_objects-0.10.0 spec/command_spec.rb
data_objects-0.9.12 spec/command_spec.rb