Skip to content

Instantly share code, notes, and snippets.

@alindeman
Created March 31, 2011 18:08
Show Gist options
  • Save alindeman/896898 to your computer and use it in GitHub Desktop.
Save alindeman/896898 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe AController do
describe 'GET index' do
it 'returns the full list' do
Model.should_receive(:find).with(:all)
get :index
response.code.should eq ("200")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment