Sha256: 9fb756802c283a4f74b32ea70241461a886c687656246e7fd91fb4f9cc6c0f7c

Contents?: true

Size: 1.08 KB

Versions: 12

Compression:

Stored size: 1.08 KB

Contents

require 'test_helper'

module Vedeu

  module Logging

    module Debug

      describe IPS do

        let(:described) { Vedeu::Logging::Debug::IPS }
        let(:instance)  { described.new }

        describe '#initialize' do
          it { instance.must_be_instance_of(described) }
          it { instance.instance_variable_get('@old_stdout').wont_equal(nil) }
          it { instance.instance_variable_get('@samples').must_equal({}) }
          it { instance.instance_variable_get('@benchmark').must_be_instance_of(Benchmark::IPS::Job) }
          it { instance.instance_variable_get('@count').must_equal(0) }
        end

        describe 'accessors' do
          it { instance.must_respond_to(:samples) }
          it { instance.must_respond_to(:samples=) }
          it { instance.must_respond_to(:benchmark) }
          it { instance.must_respond_to(:benchmark=) }
        end

        describe '#add_item' do
          # @todo Add more tests.
        end

        describe '#execute!' do
          # @todo Add more tests.
        end

      end # IPS

    end # Debug

  end # Logging

end # Vedeu

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vedeu-0.7.4 test/lib/vedeu/logging/ips_test.rb
vedeu-0.7.3 test/lib/vedeu/logging/ips_test.rb
vedeu-0.7.2 test/lib/vedeu/logging/ips_test.rb
vedeu-0.7.1 test/lib/vedeu/logging/ips_test.rb
vedeu-0.7.0 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.71 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.70 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.69 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.68 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.67 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.66 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.65 test/lib/vedeu/logging/ips_test.rb