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.6.3-x64-mingw32 spec/text_map_spec.rb
amalgalite-1.6.3 spec/text_map_spec.rb
amalgalite-1.6.1-x86-mingw32 spec/text_map_spec.rb
amalgalite-1.6.1-x64-mingw32 spec/text_map_spec.rb
amalgalite-1.6.1 spec/text_map_spec.rb
amalgalite-1.6.0-x64-mingw32 spec/text_map_spec.rb
amalgalite-1.6.0-x86-mingw32 spec/text_map_spec.rb
amalgalite-1.6.0 spec/text_map_spec.rb
amalgalite-1.5.0-x86-mingw32 spec/text_map_spec.rb
amalgalite-1.5.0 spec/text_map_spec.rb
amalgalite-1.4.1-x86-mingw32 spec/text_map_spec.rb
amalgalite-1.4.1 spec/text_map_spec.rb
amalgalite-1.4.0-x86-mingw32 spec/text_map_spec.rb
amalgalite-1.4.0 spec/text_map_spec.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/text_map_spec.rb
amalgalite-1.3.0-x86-mswin32 spec/text_map_spec.rb
amalgalite-1.3.0 spec/text_map_spec.rb