Sha256: 64906586984fb5b7a06336bb247fd90e2289774e42fb5d49c67556310df5d82a

Contents?: true

Size: 546 Bytes

Versions: 37

Compression:

Stored size: 546 Bytes

Contents

require 'spec_helper'
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

37 entries across 37 versions & 2 rubygems

Version Path
amalgalite-1.9.4-x64-mingw-ucrt spec/text_map_spec.rb
amalgalite-1.9.4-x86-mingw32 spec/text_map_spec.rb
amalgalite-1.9.4-x64-mingw32 spec/text_map_spec.rb
amalgalite-1.9.4 spec/text_map_spec.rb
amalgalite-1.9.1-x86-mingw32 spec/text_map_spec.rb
amalgalite-1.9.1-x64-mingw32 spec/text_map_spec.rb
amalgalite-1.9.1-x64-mingw-ucrt spec/text_map_spec.rb
amalgalite-1.9.1 spec/text_map_spec.rb
amalgalite-1.9.0-x64-mingw-ucrt spec/text_map_spec.rb
amalgalite-1.9.0-x86-mingw32 spec/text_map_spec.rb
amalgalite-1.9.0-x64-mingw32 spec/text_map_spec.rb
amalgalite-1.9.0 spec/text_map_spec.rb
amalgalite-1.8.0-x64-mingw-ucrt spec/text_map_spec.rb
amalgalite-1.8.0-x64-mingw32 spec/text_map_spec.rb
amalgalite-1.8.0-x86-mingw32 spec/text_map_spec.rb
amalgalite-1.8.0 spec/text_map_spec.rb
amalgalite-1.7.0-x86-mingw32 spec/text_map_spec.rb
amalgalite-1.7.0-x64-mingw32 spec/text_map_spec.rb
amalgalite-1.7.0 spec/text_map_spec.rb
amalgalite-1.6.3-x86-mingw32 spec/text_map_spec.rb