Skip to content

Commit

Permalink
AR does not like extra spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
antillas21 committed Feb 9, 2015
1 parent fb7ec3c commit c840916
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -27,13 +27,13 @@

it 'paginates records properly' do
expect(datatable.send(:paginate_records, records).to_sql).to eq(
"SELECT \"users\".* FROM \"users\" LIMIT 10 OFFSET 0"
"SELECT \"users\".* FROM \"users\" LIMIT 10 OFFSET 0"
)

datatable.params[:start] = "26"
datatable.params[:length] = "25"
expect(datatable.send(:paginate_records, records).to_sql).to eq(
"SELECT \"users\".* FROM \"users\" LIMIT 25 OFFSET 25"
"SELECT \"users\".* FROM \"users\" LIMIT 25 OFFSET 25"
)
end

Expand Down

0 comments on commit c840916

Please sign in to comment.