text_filter_plugin_spec.rb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:0k
- require File.dirname(__FILE__) + '/../spec_helper'
- describe TextFilterPlugin::Macro do
- describe "#self.attributes_parse" do
- it 'should parse lang="ruby" to {"lang" => "ruby"}' do
- TextFilterPlugin::Macro.attributes_parse('<typo:code lang="ruby">').should == {'lang' => 'ruby'}
- end
- it "should parse lang='ruby' to {'lang' => 'ruby'}" do
- TextFilterPlugin::Macro.attributes_parse("<typo:code lang='ruby'>").should == {'lang' => 'ruby'}
- end
- end
- end