Sha256: 50707d6257c8c03821a57f47ebb4bd04e7c42dcb0d66335168d7a46d5c20daca

Contents?: true

Size: 962 Bytes

Versions: 2

Compression:

Stored size: 962 Bytes

Contents

require 'spec_helper'
require 'amalgalite/sqlite3/version'

describe "Amalgalite::SQLite3::Version" do
  it "should have the sqlite3 version" do
    expect(Amalgalite::SQLite3::VERSION).to match(/\d\.\d\.\d/)
    expect(Amalgalite::SQLite3::Version.to_s).to match( /\d\.\d\.\d/ )
    expect(Amalgalite::SQLite3::Version.runtime_version).to match( /\d\.\d\.\d/ )

    Amalgalite::SQLite3::Version.to_i.should eql(3008007)
    Amalgalite::SQLite3::Version.runtime_version_number.should eql(3008007)

    Amalgalite::SQLite3::Version::MAJOR.should eql(3)
    Amalgalite::SQLite3::Version::MINOR.should eql(8)
    Amalgalite::SQLite3::Version::RELEASE.should eql(7)
    expect(Amalgalite::SQLite3::Version.to_a.size).to eql(3)

    Amalgalite::SQLite3::Version.compiled_version.should be == "3.8.7.4"
    Amalgalite::SQLite3::Version.compiled_version_number.should be == 3008007
    Amalgalite::SQLite3::Version.compiled_matches_runtime?.should be == true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
amalgalite-1.4.0-x86-mingw32 spec/sqlite3/version_spec.rb
amalgalite-1.4.0 spec/sqlite3/version_spec.rb