Sha256: c63f41ff8f3dfec597c582e738e5c38537c6678d846331731fd1fc3c7a57da22

Contents?: true

Size: 271 Bytes

Versions: 9

Compression:

Stored size: 271 Bytes

Contents

require 'spec_helper'

describe WorkingHours::CoreExt::Integer 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.5.0 spec/working_hours/core_ext/integer_spec.rb
working_hours-1.4.1 spec/working_hours/core_ext/integer_spec.rb
working_hours-1.4.0 spec/working_hours/core_ext/integer_spec.rb
working_hours-1.3.2 spec/working_hours/core_ext/integer_spec.rb
working_hours-1.3.1 spec/working_hours/core_ext/integer_spec.rb
working_hours-1.3.0 spec/working_hours/core_ext/integer_spec.rb
working_hours-1.2.0 spec/working_hours/core_ext/integer_spec.rb
working_hours-1.1.4 spec/working_hours/core_ext/integer_spec.rb
working_hours-1.1.3 spec/working_hours/core_ext/integer_spec.rb