Sha256: b35e1653c3a945037737a804c151a1bfe4999cac25e025e8e728ac01707e189d

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

require "#{File.expand_path(File.dirname(__FILE__))}/helper"

describe "BasicHtmlHelper" do
  class MockJavascriptHelperContext < Crystal::MockTemplateContext
    inherit Crystal::JavascriptHelper
  end
  
  before :each do        
    @t = MockJavascriptHelperContext.new
  end
        
  it "javascript_include_tag" do
    @t.javascript_include_tag('/public/js/app.js').should == %(<script src="/public/js/app.js" type="text/javascript"></script>)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
crystal_ext-0.0.11 spec/html/javascript_helper_spec.rb