Sha256: 700ce87ba4cfa7acdaeee0a45db71f1bb8014300341e72428c1460ea19571f35

Contents?: true

Size: 934 Bytes

Versions: 3

Compression:

Stored size: 934 Bytes

Contents

require 'spec_helper'
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(3007015)
    Amalgalite::SQLite3::Version.runtime_version_number.should eql(3007015)

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

    Amalgalite::SQLite3::Version.compiled_version.should be == "3.7.15.2"
    Amalgalite::SQLite3::Version.compiled_version_number.should be == 3007015
    Amalgalite::SQLite3::Version.compiled_matches_runtime?.should be == true
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/sqlite3/version_spec.rb
amalgalite-1.3.0-x86-mswin32 spec/sqlite3/version_spec.rb
amalgalite-1.3.0 spec/sqlite3/version_spec.rb