Created
March 31, 2011 18:08
-
-
Save alindeman/896898 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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