Sha256: ce459c12cd6604b2d67aafff54eb4030ecbff8983113dfc34a71cd0d0e9ae9c0

Contents?: true

Size: 669 Bytes

Versions: 1

Compression:

Stored size: 669 Bytes

Contents

shared_examples 'App::Views::Core' do

  let(:controller) { CMSScanner::Controller::Core.new }
  let(:start)      { Time.at(1_414_670_521).in_time_zone('Europe/London') }
  let(:tpl_vars)   { { url: target_url, start_time: start } }

  describe 'started' do
    let(:view) { 'started' }

    it 'outputs the expected string' do
      @tpl_vars = tpl_vars.merge(start_memory: 10)
    end
  end

  describe 'finished' do
    let(:view) { 'finished' }

    it 'outputs the expected string' do
      @tpl_vars = tpl_vars.merge(
        stop_time: Time.at(1_414_670_523).in_time_zone('Europe/London'),
        used_memory: 100,
        elapsed: 2
      )
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cms_scanner-0.0.6 spec/shared_examples/views/core.rb