Sha256: 0eed275bfb16ff7c6438d32612fe9303741c60f75ce9099f8a315666b5dbb3be

Contents?: true

Size: 489 Bytes

Versions: 24

Compression:

Stored size: 489 Bytes

Contents

require 'html/spec_helper'

describe "BasicHtmlHelper" do
  before do        
    class MockJavascriptHelperContext < Rad::MockTemplateContext
      inherit Rad::Html::JavascriptHelper
      
      def url_for *args
        args.join(' ')
      end
    end
    
    @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

24 entries across 24 versions & 1 rubygems

Version Path
rad_core-0.2.6 spec/html/javascript_helper_spec.rb
rad_core-0.2.5 spec/html/javascript_helper_spec.rb
rad_core-0.2.4 spec/html/javascript_helper_spec.rb
rad_core-0.2.3 spec/html/javascript_helper_spec.rb
rad_core-0.2.2 spec/html/javascript_helper_spec.rb
rad_core-0.2.1 spec/html/javascript_helper_spec.rb
rad_core-0.2.0 spec/html/javascript_helper_spec.rb
rad_core-0.0.30 spec/html/javascript_helper_spec.rb
rad_core-0.0.29 spec/html/javascript_helper_spec.rb
rad_core-0.0.28 spec/html/javascript_helper_spec.rb
rad_core-0.0.27 spec/html/javascript_helper_spec.rb
rad_core-0.0.26 spec/html/javascript_helper_spec.rb
rad_core-0.0.25 spec/html/javascript_helper_spec.rb
rad_core-0.0.24 spec/html/javascript_helper_spec.rb
rad_core-0.0.23 spec/html/javascript_helper_spec.rb
rad_core-0.0.22 spec/html/javascript_helper_spec.rb
rad_core-0.0.21 spec/html/javascript_helper_spec.rb
rad_core-0.0.20 spec/html/javascript_helper_spec.rb
rad_core-0.0.19 spec/html/javascript_helper_spec.rb
rad_core-0.0.18 spec/html/javascript_helper_spec.rb