Sha256: c7297f5bc86c778fcabff0bb815b6321048731c4f7620275e21a73f822968410
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 Bytes
Contents
require 'spec_helper' describe ContentController do before :each do @context = double(:context) @controller = ContentController.new(context: @context) end describe 'index action' do it 'should render index template' do @context.should_receive(:haml).with('content/index'.to_sym, anything) @controller.index end end describe 'search action' do it 'should render search template' do Backend.stub(:search){ {} } @context.should_receive(:haml).with('content/search'.to_sym, anything) @controller.search end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis_monitor-0.0.5 | spec/controllers/content_controller_spec.rb |