Sha256: 67423192a86f48809ae71554e9c70d8b70ff499f1d10531417f513c2e81d8391
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
require 'spec_helper' describe Masheri::QueryBuilder do it "should build a simple query" do builder = Masheri::QueryBuilder.new builder.from("members").to_s.should == "SELECT * FROM members" end it "should build a query with pagination" do builder = Masheri::QueryBuilder.new builder.from("members").page(25).items(100).to_s.should == "SELECT * FROM members PAGE 25 ITEMS 100" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
masheri-0.6.1 | spec/masheri/query_builder_spec.rb |
masheri-0.6.0 | spec/masheri/query_builder_spec.rb |