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