Sha256: d49e02fefb781500a8f1270f69e56a06a4a391d17274df7765844c28f508536e

Contents?: true

Size: 627 Bytes

Versions: 6

Compression:

Stored size: 627 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__),%w[ .. spec_helper.rb ]))

require 'amalgalite/sqlite3/constants'

describe Amalgalite::SQLite3::Constants do

  it "has Open constants" do
    Amalgalite::SQLite3::Constants::Open::READONLY.should > 0
  end
  
  it "has DataType constants" do
    Amalgalite::SQLite3::Constants::DataType::BLOB.should > 0
  end

  it "has ResultCode constants" do
    Amalgalite::SQLite3::Constants::ResultCode::OK.should == 0
  end

  it "can return the constant from a number" do
    c = Amalgalite::SQLite3::Constants::ResultCode.from_int( 21 )
    c.should == "MISUSE"
  end


end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
amalgalite-0.1.0 spec/sqlite3/constants_spec.rb
amalgalite-0.2.0 spec/sqlite3/constants_spec.rb
amalgalite-0.2.3 spec/sqlite3/constants_spec.rb
amalgalite-0.2.1 spec/sqlite3/constants_spec.rb
amalgalite-0.2.2 spec/sqlite3/constants_spec.rb
amalgalite-0.2.4 spec/sqlite3/constants_spec.rb