Sha256: fcc7eaf49e2ecccf83278a082120369ab5208f4e242c680401b30a3bc33f1c8c
Contents?: true
Size: 600 Bytes
Versions: 22
Compression:
Stored size: 600 Bytes
Contents
require File.join(File.dirname(File.expand_path(__FILE__)), "spec_helper") describe "from_block extension" do before do @db = Sequel.mock @db.extension(:from_block) end specify "should make Database#from blocks apply to FROM" do @db.from{f}.sql.should == 'SELECT * FROM f' @db.from{[f, g(f)]}.sql.should == 'SELECT * FROM f, g(f)' end specify "should handle from blocks with method arguments" do @db.from(:f){g(f)}.sql.should == 'SELECT * FROM f, g(f)' end specify "should handle from without block" do @db.from(:f).sql.should == 'SELECT * FROM f' end end
Version data entries
22 entries across 22 versions & 2 rubygems