Sha256: 648fd05f064e94644e381f002f2c72a055f001eb007c6afbde65c36d105405db

Contents?: true

Size: 837 Bytes

Versions: 3

Compression:

Stored size: 837 Bytes

Contents

require "test_helper"

module PushType
  describe AssetsHelper do

    describe '#asset_icon' do
      describe 'with image asset' do
        let(:asset) { FactoryGirl.create :image_asset }
        it { asset_icon(asset).must_equal 'push_type/icon-file-image.png'}
      end
      describe 'with audio asset' do
        let(:asset) { FactoryGirl.create :audio_asset }
        it { asset_icon(asset).must_equal 'push_type/icon-file-audio.png'}
      end
      describe 'with video asset' do
        let(:asset) { FactoryGirl.create :video_asset }
        it { asset_icon(asset).must_equal 'push_type/icon-file-video.png'}
      end
      describe 'with document asset' do
        let(:asset) { FactoryGirl.create :document_asset }
        it { asset_icon(asset).must_equal 'push_type/icon-file-document.png'}
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
push_type_admin-0.1.1 test/helpers/push_type/assets_helper_test.rb
push_type_admin-0.1.0 test/helpers/push_type/assets_helper_test.rb
push_type_admin-0.1.0.beta3 test/helpers/push_type/assets_helper_test.rb