Sha256: 720c7e49034ba313ecb9a9eba9343f78f46b243bbe4e142cac48eefea111e006
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
require 'spec_helper' module OData describe QueryBuilder do describe "#initialize" do it "handles additional parameters" do builder = QueryBuilder.new 'Products', { :x=>1, :y=>2 } builder.query.should eq "Products?x=1&y=2" end it "handles empty additional parameters" do builder = QueryBuilder.new 'Products' builder.query.should eq "Products" end end describe "#query" do it "should append additional parameters to the end" do builder = QueryBuilder.new 'Products', { :x=>1, :y=>2 } builder.top(10) builder.query.should eq "Products?$top=10&x=1&y=2" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_odata-0.0.10 | spec/query_builder_spec.rb |