Sha256: 2ea6961d83f0d93620dfe1c5df38071dbcd0a9166b2c9a13fa4b579ec9a48adb

Contents?: true

Size: 981 Bytes

Versions: 6

Compression:

Stored size: 981 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__),"..","spec_helper.rb"))
require 'amalgalite/sqlite3/version'

describe "Amalgalite::SQLite3::Version" do
  it "should have the sqlite3 version" do
    Amalgalite::SQLite3::VERSION.should =~ /\d\.\d\.\d/
    Amalgalite::SQLite3::Version.to_s.should =~ /\d\.\d\.\d/
    Amalgalite::SQLite3::Version.runtime_version.should =~ /\d\.\d\.\d/

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

    Amalgalite::SQLite3::Version::MAJOR.should eql(3)
    Amalgalite::SQLite3::Version::MINOR.should eql(7)
    Amalgalite::SQLite3::Version::RELEASE.should eql(5)
    Amalgalite::SQLite3::Version.to_a.should have(3).items

    Amalgalite::SQLite3::Version.compiled_version.should == "3.7.5"
    Amalgalite::SQLite3::Version.compiled_version_number.should == 3007005
    Amalgalite::SQLite3::Version.compiled_matches_runtime?.should == true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
amalgalite-1.1.2-x86-mingw32 spec/sqlite3/version_spec.rb
amalgalite-1.1.2-x86-mswin32 spec/sqlite3/version_spec.rb
amalgalite-1.1.2 spec/sqlite3/version_spec.rb
amalgalite-1.1.1-x86-mingw32 spec/sqlite3/version_spec.rb
amalgalite-1.1.1-x86-mswin32 spec/sqlite3/version_spec.rb
amalgalite-1.1.1 spec/sqlite3/version_spec.rb