Changeset 1139
- Timestamp:
- 12/29/07 14:03:40 (1 year ago)
- Files:
-
- trunk/lib/merb/mixins/view_context.rb (modified) (1 diff)
- trunk/spec/merb/view_context_spec.rb (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/merb/mixins/view_context.rb
r1138 r1139 372 372 :type => "text/javascript" 373 373 } 374 tags << %Q{<script #{attrs.to_xml_attributes}> </script>}374 tags << %Q{<script #{attrs.to_xml_attributes}>//</script>} 375 375 end 376 376 trunk/spec/merb/view_context_spec.rb
r1136 r1139 175 175 tag.should match_tag(:script, :src => "/javascripts/foo.js", 176 176 :type => "text/javascript", 177 :content => nil)177 :content => "//") 178 178 179 179 js_include_tag('foo').should == js_include_tag('foo.js') … … 188 188 tag.should match_tag(:script, :src => "/inky/javascripts/foo.js", 189 189 :type => "text/javascript", 190 :content => nil)190 :content => "//") 191 191 192 192 Merb::Server.config.delete(:path_prefix) … … 234 234 tag.should match_tag(:script, :src => "/javascripts/all.js", 235 235 :type => "text/javascript", 236 :content => nil)236 :content => "//") 237 237 end 238 238 … … 245 245 tag.should match_tag(:script, :src => "/javascripts/base.js", 246 246 :type => "text/javascript", 247 :content => nil)247 :content => "//") 248 248 end 249 249 … … 263 263 tag.should match_tag(:script, :src => "/javascripts/all.js", 264 264 :type => "text/javascript", 265 :content => nil)265 :content => "//") 266 266 end 267 267 end
