Sha256: e10b916c45a4fccb9ab7edf78d21b246b0c1bdc55c35f0aec48b79267ddfdf34

Contents?: true

Size: 270 Bytes

Versions: 9

Compression:

Stored size: 270 Bytes

Contents

require 'spec_helper'

describe WorkingHours::CoreExt::Fixnum do

  describe '#working' do
    it 'returns a DurationProxy' do
      proxy = 42.working
      expect(proxy).to be_kind_of(WorkingHours::DurationProxy)
      expect(proxy.value).to eq(42)
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
working_hours-1.1.2 spec/working_hours/core_ext/fixnum_spec.rb
working_hours-1.1.1 spec/working_hours/core_ext/fixnum_spec.rb
working_hours-1.1.0 spec/working_hours/core_ext/fixnum_spec.rb
working_hours-1.0.4 spec/working_hours/core_ext/fixnum_spec.rb
working_hours-1.0.3 spec/working_hours/core_ext/fixnum_spec.rb
working_hours-1.0.2 spec/working_hours/core_ext/fixnum_spec.rb
working_hours-1.0.1 spec/working_hours/core_ext/fixnum_spec.rb
working_hours-1.0.0 spec/working_hours/core_ext/fixnum_spec.rb
working_hours-0.9.0 spec/working_hours/core_ext/fixnum_spec.rb