17 lines
321 B
Ruby
17 lines
321 B
Ruby
# encoding: UTF-8
|
|
require 'spec_helper'
|
|
|
|
describe Mysql2::Error do
|
|
before(:each) do
|
|
@error = Mysql2::Error.new "testing"
|
|
end
|
|
|
|
it "should respond to #error_number" do
|
|
@error.should respond_to(:error_number)
|
|
end
|
|
|
|
it "should respond to #sql_state" do
|
|
@error.should respond_to(:sql_state)
|
|
end
|
|
end
|