Sha256: 00843c0b4f1b9a8d1daabf991478fdebe64e66ce22a87469aa5a56b97121c7ac
Contents?: true
Size: 947 Bytes
Versions: 2
Compression:
Stored size: 947 Bytes
Contents
describe "string content" do it "prints a string if value is a hash: {:type=>:string, ...}" do target :body, %^<p>string</p>^ actual do p { {:type=>:string, :escape=>true, :value=>"string"} } end end # === it prints a string if value is a hash: {:type=>:string, ...} it "does not escape string if: {:type=>:string, :escape=>false...}" do target :body, %^<p>string & string</p>^ actual do p { {:type=>:string, :escape=>false, :value=>"string & string"} } end end # === it prints a string if value is a hash: {:type=>:string, ...} it "raises an error if :type is not :string" do should.raise(WWW_App::Invalid_Type) { actual do p { {:type=>"uNkNown val", :escape=>false, :value=>"string & string"} } end }.message.should =~ /uNkNown/ end # === it raises an error if :type is not :string end # === describe "string content"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
www_app-1.3.0 | specs/server-side/0060-string.rb |
www_app-1.2.1 | specs/server-side/0060-string.rb |