Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
I wish this would just work...
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) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.