Sha256: 25e14c8773119f952cab24c6fd8df9caabfcefe1fcd938327de95fb2d8d53e0c

Contents?: true

Size: 628 Bytes

Versions: 51

Compression:

Stored size: 628 Bytes

Contents

require 'rubygems'
require 'spec'

$: << File.expand_path(File.join(File.dirname(__FILE__),"..","lib"))
require 'amalgalite/type_maps/text_map'

describe Amalgalite::TypeMaps::TextMap do
  before(:each) do
    @map = Amalgalite::TypeMaps::TextMap.new
  end

  describe "#bind_type_of" do
    it "returnes text for everything" do
      @map.bind_type_of( 3.14 ).should == ::Amalgalite::SQLite3::Constants::DataType::TEXT
    end
  end

  describe "#result_value_of" do
    it "returns the string value of the object for everything passed in" do
      @map.result_value_of( "doesn't matter", 42 ).should == "42"
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
amalgalite-0.15.0-x86-mingw32 spec/text_map_spec.rb
amalgalite-0.15.0-x86-mswin32 spec/text_map_spec.rb
amalgalite-0.15.0 spec/text_map_spec.rb
amalgalite-0.12.0-x86-mingw32 spec/text_map_spec.rb
amalgalite-0.12.0 spec/text_map_spec.rb
amalgalite-0.12.0-x86-mswin32 spec/text_map_spec.rb
amalgalite-0.11.0-x86-mswin32 spec/text_map_spec.rb
amalgalite-0.11.0-x86-mingw32 spec/text_map_spec.rb
amalgalite-0.10.2-x86-mswin32 spec/text_map_spec.rb
amalgalite-0.10.2-x86-mingw32 spec/text_map_spec.rb
amalgalite-0.10.1-x86-mswin32 spec/text_map_spec.rb
amalgalite-0.10.1-x86-mingw32 spec/text_map_spec.rb
amalgalite-0.10.0-x86-mswin32-60 spec/text_map_spec.rb
amalgalite-0.11.0 spec/text_map_spec.rb
amalgalite-0.10.2 spec/text_map_spec.rb
amalgalite-0.10.0 spec/text_map_spec.rb
amalgalite-0.10.1 spec/text_map_spec.rb
amalgalite-0.2.0 spec/text_map_spec.rb
amalgalite-0.1.0 spec/text_map_spec.rb
amalgalite-0.2.3 spec/text_map_spec.rb