Sha256: 104a02455f215071b6255644ea92b1db3fcc59c9dae1019b8da8df608d941494
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' class Page < ActiveRecord::Base acts_as_textile :content end describe "Atrybut z acts_as_textile" do before(:each) do @page = Page.create(:name => 'Title', :content => 'h2. Textile Test Text') end it "powinien zwrócić obiekt RedCloth::TextileDoc" do @page.content.class.should == RedCloth::TextileDoc end it "powinien zwrócić oryginalną zawartość przy wywołaniu .to_s" do @page.content.to_s.should == 'h2. Textile Test Text' end it "powinien zwrócić przetworzoną zawartość przy wywołaniu .to_html" do @page.content.to_html.should == '<h2>Textile Test Text</h2>' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pdzioba-areeya_textile-1.1.0 | spec/model_extensions_spec.rb |