Sha256: de59a93569b68a50509624c93e4ee45890ece2006ae702284988df7e970980cb

Contents?: true

Size: 318 Bytes

Versions: 124

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true

RSpec.describe :years_ago do
  link :years_ago, from: :ree_datetime

  it {
    result = years_ago(DateTime.new(2022, 3, 4, 13, 20, 40), 5)

    expect(result).to eq(DateTime.new(2017, 3, 4, 13, 20, 40))
  }

  it {
    result = years_ago(5)

    expect(result).to be_a(DateTime)
  }
end

Version data entries

124 entries across 124 versions & 1 rubygems

Version Path
ree_lib-1.0.124 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.123 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.122 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.121 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.120 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.119 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.118 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.117 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.116 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.115 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.114 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.113 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.112 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.111 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.110 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.109 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.108 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.107 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.106 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb
ree_lib-1.0.105 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/years_ago_spec.rb