Sha256: 5f7e1ae794d6ec112cb561a92fa7d33c459ea4edaf160b6419b80ba292d892ed

Contents?: true

Size: 439 Bytes

Versions: 9

Compression:

Stored size: 439 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe 'With the Admin::BaseHelper' do
  helper_name 'admin/base'

  it 'time_delta_from_now_in_words(time_in_the_future) should use "from now"' do
    time_delta_from_now_in_words(2.days.from_now).should == '2 days from now'
  end

  it 'time_delta_from_now_in_words(time_in_the_past) should use "ago"' do
    time_delta_from_now_in_words(2.days.ago).should == '2 days ago'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
typo-5.0.1 spec/helpers/admin_base_helper_spec.rb
typo-5.0.2 spec/helpers/admin_base_helper_spec.rb
typo-5.0.3.98.1 spec/helpers/admin_base_helper_spec.rb
typo-5.0.3.98 spec/helpers/admin_base_helper_spec.rb
typo-5.0 spec/helpers/admin_base_helper_spec.rb
typo-5.1.1 spec/helpers/admin_base_helper_spec.rb
typo-5.1.2 spec/helpers/admin_base_helper_spec.rb
typo-5.1.3 spec/helpers/admin_base_helper_spec.rb
typo-5.1 spec/helpers/admin_base_helper_spec.rb