Sha256: 20af22b4896059d836c53024b2e9efd1c08b40c2f7d96498720ef64f6d38f5af
Contents?: true
Size: 720 Bytes
Versions: 1
Compression:
Stored size: 720 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'spec_helper') describe FeaturesController do before { @feature = mock('a feature') } describe :get => :show, :id => 'user_eats_rabbit' do before { Courgette.should_receive(:find).with('user_eats_rabbit').and_return(@feature) } it { should respond_with(:success) } it { should render_template('features/show') } it { should assign_to(:feature, :with => @feature) } end describe :get => :index do before { Courgette.should_receive(:first).and_return(@feature) } it { should respond_with(:success) } it { should render_template('features/show') } it { should assign_to(:feature, :with => @feature) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jnicklas-courgette-0.0.3 | spec/controllers/features_controller_spec.rb |