Sha256: 4927e45e7919b1691460e31c1190f9458898775e6096fbcca562b515e6fc6414

Contents?: true

Size: 537 Bytes

Versions: 8

Compression:

Stored size: 537 Bytes

Contents

require 'test_helper'

require 'activesupport'
require 'action_view'
require 'action_controller'

require 'bumpspark_helper'

BumpsparkHelper.send(:include, ActionView::Helpers::TagHelper)
BumpsparkHelper.send(:include, ActionView::Helpers::AssetTagHelper)

class BumpsparkHelperTest < Test::Unit::TestCase
  
  include BumpsparkHelper
  include ActionView::Helpers::AssetTagHelper
  
  should "generate an image" do
    tag = bumpspark_tag([1, 2, 3])
    assert tag.include?('<img'), tag
    assert tag.include?('src'), tag
  end
  
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
bruce-bumpspark-1.0.0 test/bumpspark_helper_test.rb
bruce-bumpspark-1.0.1 test/bumpspark_helper_test.rb
bruce-bumpspark-1.0.2 test/bumpspark_helper_test.rb
bruce-bumpspark-1.0.3 test/bumpspark_helper_test.rb
bruce-bumpspark-1.0.4 test/bumpspark_helper_test.rb
bumpspark-1.1.1 test/bumpspark_helper_test.rb
bumpspark-1.1.0 test/bumpspark_helper_test.rb
bumpspark-1.0.4 test/bumpspark_helper_test.rb