Sha256: 919e53c873b2ba1caa4e4ca6bf8a0a1f29f7684d31f7ba175c5bb9dfdf7c791a

Contents?: true

Size: 448 Bytes

Versions: 2

Compression:

Stored size: 448 Bytes

Contents

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

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

  specify '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

  specify '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

2 entries across 2 versions & 1 rubygems

Version Path
typo-4.1.1 spec/helpers/admin_base_helper_spec.rb
typo-4.1 spec/helpers/admin_base_helper_spec.rb