Sha256: 17199eb91a57f2e2b448f927b979dd7410a4779f064e1fb0156621a51a52d3c1

Contents?: true

Size: 788 Bytes

Versions: 21

Compression:

Stored size: 788 Bytes

Contents

#!/usr/bin/env ruby

require 'test/unit'
currentPath = File.dirname(__FILE__)
require File.join( currentPath, '../lib/masterview' )
require File.join( currentPath, '../lib/masterview/directives/stylesheet_link' )

class StylesheetLinkTest < Test::Unit::TestCase
  include MasterView::Directives

  def setup
    @directives = MasterView::DirectiveSet.new
  end

  def test_default
    tag = MasterView::Tag.new(@directives, 'foo', {}, :normal, nil)
    @directives.directives = []
    attr_value = "hello world"
    @directives << Stylesheet_link.new(attr_value)
    assert_equal nil, @directives.determine_dcs(:stag).render
    dcs = @directives.determine_dcs(:etag)
    dcs.context = tag.create_context
    assert_equal "<%= stylesheet_link_tag 'hello world' %>", dcs.render
  end

end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
masterview-0.0.15 test/stylesheet_link_test.rb
masterview-0.0.11 test/stylesheet_link_test.rb
masterview-0.0.2 test/stylesheet_link_test.rb
masterview-0.0.17 test/stylesheet_link_test.rb
masterview-0.0.16 test/stylesheet_link_test.rb
masterview-0.0.10 test/stylesheet_link_test.rb
masterview-0.0.12 test/stylesheet_link_test.rb
masterview-0.0.13 test/stylesheet_link_test.rb
masterview-0.0.14 test/stylesheet_link_test.rb
masterview-0.1.5 test/stylesheet_link_test.rb
masterview-0.1.0 test/stylesheet_link_test.rb
masterview-0.1.1 test/stylesheet_link_test.rb
masterview-0.1.2 test/stylesheet_link_test.rb
masterview-0.1.3 test/stylesheet_link_test.rb
masterview-0.0.7 test/stylesheet_link_test.rb
masterview-0.0.8 test/stylesheet_link_test.rb
masterview-0.0.9 test/stylesheet_link_test.rb
masterview_parser-0.0.5 test/stylesheet_link_test.rb
masterview_parser-0.0.4 test/stylesheet_link_test.rb
masterview_parser-0.0.3 test/stylesheet_link_test.rb