Sha256: c1ceb1f265cd3bb3ef2d0cd29028d9d9234af1c26930bff48e8379e1f8eb306d

Contents?: true

Size: 526 Bytes

Versions: 9

Compression:

Stored size: 526 Bytes

Contents

# 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

  # Mysql gem compatibility
  it "should alias #error_number to #errno" do
    @error.should respond_to(:errno)
  end

  it "should alias #message to #error" do
    @error.should respond_to(:error)
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
mysql2_bigint-0.2.6.1 spec/mysql2/error_spec.rb
ghazel-mysql2-0.2.6.3 spec/mysql2/error_spec.rb
ghazel-mysql2-0.2.6.2 spec/mysql2/error_spec.rb
ghazel-mysql2-0.2.6.1 spec/mysql2/error_spec.rb
mysql2-0.2.6 spec/mysql2/error_spec.rb
mysql2-0.2.6-x86-mswin32-60 spec/mysql2/error_spec.rb
mysql2-0.2.6-x86-mingw32 spec/mysql2/error_spec.rb
mysql2-0.2.5 spec/mysql2/error_spec.rb
mysql2-0.2.4 spec/mysql2/error_spec.rb