Displaying 1 result from an estimated 1 matches for "pagniat".
Did you mean:
pagina
2007 Jun 14
1
rspec will_paginate
...[@ticket])
end
def do_get
get :index
end
it "should be successful" do
do_get
response.should be_success
end
it "should render index template" do
do_get
response.should render_template(''index'')
end
it "should find all pagniated tickets" do
@tickets = Ticket.paginate :per_page => 10
Ticket.should_receive(:filter_status_by).with(nil,nil).and_return(@tickets)
do_get
end
it "should find solved pagniated tickets" do
@tickets = Ticket.paginate :per_page => 10, :conditions => {:sta...