# encoding: UTF-8 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb') 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