spec/lib/internals/adapters/rack/query_spec.rb in picky-1.5.4 vs spec/lib/internals/adapters/rack/query_spec.rb in picky-2.0.0.pre1

- old
+ new

@@ -20,14 +20,20 @@ describe 'extracted' do it 'extracts the query' do @adapter.extracted('query' => 'some_query')[0].should == 'some_query' end + it 'extracts the default ids amount' do + @adapter.extracted('query' => 'some_query')[1].should == 20 + end it 'extracts the default offset' do - @adapter.extracted('query' => 'some_query')[1].should == 0 + @adapter.extracted('query' => 'some_query')[2].should == 0 end + it 'extracts a given ids amount' do + @adapter.extracted('query' => 'some_query', 'ids' => '123')[1].should == 123 + end it 'extracts a given offset' do - @adapter.extracted('query' => 'some_query', 'offset' => '123')[1].should == 123 + @adapter.extracted('query' => 'some_query', 'offset' => '123')[2].should == 123 end end end \ No newline at end of file