Sha256: cefd5a4ad1c558a863ba58da70348ed9b4f24285407a4cd32735c548631e976e

Contents?: true

Size: 919 Bytes

Versions: 32

Compression:

Stored size: 919 Bytes

Contents

require 'spec_helper'

describe Cuboid::Application do
    include_examples 'application'

    describe '#version' do
        it "returns #{Cuboid::VERSION}" do
            expect(subject.version).to eq(Cuboid::VERSION)
        end
    end

    describe '#run' do
        context 'on invalid options' do
            it 'raises ArgumentError'
        end
    end

    describe '#statistics' do
        let(:statistics) { subject.statistics }

        describe ':runtime' do
            context 'when the app has been running' do
                it 'returns the runtime in seconds' do
                    subject.run
                    expect(statistics[:runtime]).to be > 0
                end
            end

            context 'when no scan has been running' do
                it 'returns 0' do
                    expect(statistics[:runtime]).to eq(0)
                end
            end
        end
    end

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
cuboid-0.2.11 spec/cuboid/application_spec.rb
cuboid-0.2.10 spec/cuboid/application_spec.rb
cuboid-0.2.9 spec/cuboid/application_spec.rb
cuboid-0.2.8 spec/cuboid/application_spec.rb
cuboid-0.2.7 spec/cuboid/application_spec.rb
cuboid-0.2.6 spec/cuboid/application_spec.rb
cuboid-0.2.5 spec/cuboid/application_spec.rb
cuboid-0.2.4.2 spec/cuboid/application_spec.rb
cuboid-0.2.4.1 spec/cuboid/application_spec.rb
cuboid-0.2.4 spec/cuboid/application_spec.rb
cuboid-0.2.3 spec/cuboid/application_spec.rb
cuboid-0.2.2 spec/cuboid/application_spec.rb
cuboid-0.2.1 spec/cuboid/application_spec.rb
cuboid-0.2 spec/cuboid/application_spec.rb
cuboid-0.1.9.1 spec/cuboid/application_spec.rb
cuboid-0.1.9 spec/cuboid/application_spec.rb
cuboid-0.1.8 spec/cuboid/application_spec.rb
cuboid-0.1.7 spec/cuboid/application_spec.rb
cuboid-0.1.6.1 spec/cuboid/application_spec.rb
cuboid-0.1.6 spec/cuboid/application_spec.rb