Sha256: 5f2d220dc7afddefd9d815f59a9644a78a00ba30ff9948c004307f724d3b87d2

Contents?: true

Size: 411 Bytes

Versions: 8

Compression:

Stored size: 411 Bytes

Contents

require 'spec_helper'

describe Mashery::QueryBuilder do
  it "should build a simple query" do
    builder = Mashery::QueryBuilder.new
    builder.from("members").to_s.should == "SELECT * FROM members"
  end

  it "should build a query with pagination" do
    builder = Mashery::QueryBuilder.new
    builder.from("members").page(25).items(100).to_s.should == "SELECT * FROM members PAGE 25 ITEMS 100"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mashery_rails-0.6.9.pre4 spec/mashery/query_builder_spec.rb
mashery_rails-0.6.9.pre3 spec/mashery/query_builder_spec.rb
mashery_rails-0.6.9.pre1 spec/mashery/query_builder_spec.rb
mashery_rails-0.6.8 spec/mashery/query_builder_spec.rb
mashery_rails-0.6.7 spec/mashery/query_builder_spec.rb
mashery_rails-0.6.6 spec/mashery/query_builder_spec.rb
mashery_rails-0.6.3 spec/mashery/query_builder_spec.rb
mashery_rails-0.6.2 spec/mashery/query_builder_spec.rb