Sha256: fbf25ceebf63837cba41d07a260076e0dfbe4170bb79ab33988cff50e2f94d7b

Contents?: true

Size: 437 Bytes

Versions: 3

Compression:

Stored size: 437 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Yardstick, '.measure_string' do
  context 'with a string' do
    subject { described_class.measure_string('def test; end') }

    it { should be_a(Yardstick::MeasurementSet) }

    it { should_not be_empty }
  end

  describe 'with no arguments' do
    it 'should raise an exception' do
      expect { Yardstick.measure_string }
        .to raise_error(ArgumentError)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yardstick-0.9.9 spec/integration/yardstick/class_methods/measure_string_spec.rb
yardstick-0.9.8 spec/integration/yardstick/class_methods/measure_string_spec.rb
yardstick-0.9.7 spec/integration/yardstick/class_methods/measure_string_spec.rb