Sha256: d4bb2a0da49b6fc8906ad5e264350029d7cc05ff45fe9e386c26b8cb89f8bfa1

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

require 'test_helper'

module BottleRocket
  module ViewHelpers
    class ViewHelpersTest < TestCase

      before do
        @view = FakeView.new
      end

      it 'creates a default 24h countdown' do
        from = Time.now
        to   = from + 1

        assert @view.countdown(from: from, to: to).is_a?(String)
      end

      it 'creates a default 24h countup' do
        from = Time.now
        to   = from + 1

        assert @view.countup(from: from, to: to).is_a?(String)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bottle_rocket-0.0.1 test/bottle_rocket/view_helpers_test.rb