Sha256: 8f21fca094ecaf42623d443379712f022544b4e941ffa6a40990f0166619051d

Contents?: true

Size: 434 Bytes

Versions: 4

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

require 'timely/rails/period'

describe Timely::Period do
  let(:time) { DateTime.new(2000, 1, 1, 12, 0, 0) }
  let(:period_after_time) { DateTime.new(2000, 1, 1, 12, 2, 0) }
  subject(:period) { Timely::Period.new(2, :minutes) }

  it 'should work' do
    expect(period.after(time)).to eq period_after_time
  end

  specify do
    expect(period.to_s).to eq '2 minutes'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
timely-0.9.0 spec/rails/period_spec.rb
timely-0.8.0 spec/rails/period_spec.rb
timely-0.7.0 spec/rails/period_spec.rb
timely-0.6.0 spec/rails/period_spec.rb