Sha256: 3655f2ac45abde4a663d044ebd91b8c54aa32833f6aea42fcbccf08d45d7ff78

Contents?: true

Size: 1.09 KB

Versions: 8

Compression:

Stored size: 1.09 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').must_be_instance_of(StringIO) }
          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

8 entries across 8 versions & 1 rubygems

Version Path
vedeu-0.6.64 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.63 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.62 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.61 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.60 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.59 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.58 test/lib/vedeu/logging/ips_test.rb
vedeu-0.6.57 test/lib/vedeu/logging/ips_test.rb