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