spec/application/tasks_controller.rb in remarkable_rails-3.1.0 vs spec/application/tasks_controller.rb in remarkable_rails-3.1.1
- old
+ new
@@ -9,10 +9,15 @@
def new
render :nothing => true
end
def show
- @task = Task.find(params[:id])
+ @task = Task.find(params[:id])
+
+ # Multiple expects
+ Task.count
+ Task.max
+ Task.min
respond_to do |format|
format.html { render :text => 'show' }
format.xml { render :xml => @task.to_xml }
end