Created
July 17, 2012 18:50
-
-
Save benedikt/3131247 to your computer and use it in GitHub Desktop.
I wish this would just work...
This file contains hidden or 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 ProjectsController do | |
let(:project) { double(:project) } | |
let(:projects) { [project] } | |
describe 'GET show' do | |
let(:params) { { :id => 1, :format => :json } } | |
before { Project.should_receive(:find).with(1).and_return(project) } | |
it { should assign_to(:project).with(project) } | |
it { should respond_with(project) } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment