Sha256: cefd5a4ad1c558a863ba58da70348ed9b4f24285407a4cd32735c548631e976e

Contents?: true

Size: 919 Bytes

Versions: 34

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

34 entries across 34 versions & 1 rubygems

Version Path
cuboid-0.1.6.1 spec/cuboid/application_spec.rb
cuboid-0.1.6 spec/cuboid/application_spec.rb
cuboid-0.1.5 spec/cuboid/application_spec.rb
cuboid-0.1.4 spec/cuboid/application_spec.rb
cuboid-0.1.3 spec/cuboid/application_spec.rb
cuboid-0.1.2 spec/cuboid/application_spec.rb
cuboid-0.1.1 spec/cuboid/application_spec.rb
cuboid-0.1.0 spec/cuboid/application_spec.rb
cuboid-0.0.5 spec/cuboid/application_spec.rb
cuboid-0.0.4 spec/cuboid/application_spec.rb
cuboid-0.0.3 spec/cuboid/application_spec.rb
cuboid-0.0.3alpha spec/cuboid/application_spec.rb
cuboid-0.0.2alpha spec/cuboid/application_spec.rb
cuboid-0.0.1alpha spec/cuboid/application_spec.rb