Sha256: 5e48c4369d27cee0daa6fbd810afceb72ee06844765909b5108a2dfa802e0f97

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

require 'spec_helper'

describe PerformanceController do
  let(:context){ double() }
  let(:controller){ PerformanceController.new(context: context) }

  describe 'warning action' do
    it 'should render warning template' do
      context.should_receive(:haml).with('performance/warning'.to_sym, anything)
      controller.warning
    end
  end

  describe 'check action' do
    it 'should render check template' do
      Backend.stub(:performance_stats){ {} }
      context.should_receive(:haml).with('performance/check'.to_sym, anything)
      controller.check
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redis_monitor-0.1 spec/controllers/performance_controller_spec.rb
redis_monitor-0.0.6 spec/controllers/performance_controller_spec.rb