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

Version Path
vedeu-0.4.54 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.53 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.52 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.51 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.50 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.49 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.48 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.47 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.46 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.45 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.44 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.43 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.42 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.41 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.40 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.39 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.38 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.37 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.36 test/lib/vedeu/output/view_helpers/view_helpers_test.rb
vedeu-0.4.35 test/lib/vedeu/output/view_helpers/view_helpers_test.rb