Report abuse

it "should call display with an object" do
  dispatch_to(YourController, :your_action, { :id => "funky" }) do |c|
    c.should_receive(:display).with({ :id => "funky" })
  end
end

def your_action
  display params
end