Sha256: e64a313679973455c18de6bb15cc393769be87d4ba5fa0041ebc95445ea530fd
Contents?: true
Size: 523 Bytes
Versions: 2
Compression:
Stored size: 523 Bytes
Contents
require 'spec_helper' describe InfoController do before :each do @context = double(:context) @controller = InfoController.new(context: @context) end describe 'index action' do before :each do Backend.stub(:info){ {} } end it 'should not fail' do @context.stub(:haml) expect{ @controller.index }.not_to raise_error end it 'should render info template' do @context.should_receive(:haml).with('info/info'.to_sym, anything) @controller.index end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redis_monitor-0.0.5 | spec/controllers/info_controller_spec.rb |
redis_monitor-0.0.4 | spec/controllers/info_controller_spec.rb |