Sha256: 3a3cac5daa0fc9355e1ce5c12f7b5c24eb19f0b12a1532ce408e90c0529f9404
Contents?: true
Size: 529 Bytes
Versions: 20
Compression:
Stored size: 529 Bytes
Contents
require 'test_helper' module Vedeu class ViewHelpersTestClass include Vedeu::ViewHelpers end describe ViewHelpers do let(:described) { ViewHelpers } let(:instance) { ViewHelpersTestClass.new } describe '#time_now' do let(:_time) { Time.new(2015, 6, 23, 22, 25, 17) } before { Time.stubs(:now).returns(_time) } subject { instance.time_now } it 'returns a formatted time' do subject.must_equal('Tue 23 Jun 22:25') end end end # ViewHelpers end # Vedeu
Version data entries
20 entries across 20 versions & 1 rubygems