Changeset 1633
- Timestamp:
- 02/14/08 08:59:14 (3 months ago)
- Files:
-
- trunk/spec/controllers/accounts_controller_spec.rb (modified) (1 diff)
- trunk/spec/models/notification_mailer_spec.rb (deleted)
- trunk/spec/views/comments/html_sanitization_spec.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/spec/controllers/accounts_controller_spec.rb
r1622 r1633 8 8 User.stub!(:authenticate).and_return(@user) 9 9 User.stub!(:count).and_return(1) 10 controller.stub!(:this_blo t).and_return(Blog.default)10 controller.stub!(:this_blog).and_return(Blog.default) 11 11 end 12 12 trunk/spec/views/comments/html_sanitization_spec.rb
r1574 r1633 3 3 describe "CommentSanitization", :shared => true do 4 4 before do 5 build_text_filters6 5 @article = mock_model(Article, :created_at => Time.now, :published_at => Time.now) 7 6 Article.stub!(:find).and_return(@article) … … 22 21 :created_at => Time.now) do |klass| 23 22 @comment = klass.new(comment_options) 24 end25 end26 27 def build_text_filters28 TextFilter.delete_all29 TextFilter.with_options(:filters => [], :params => {}) do |tf|30 tf.create(:name => 'markdown', :description => 'Markdown', :markup => 'markdown')31 tf.create(:name => 'smartypants', :description => 'SmartyPants',32 :markup => 'none', :filters => [:smartypants])33 tf.create(:name => 'markdown smartypants', :description => 'Markdown SmartyPants',34 :markup => 'markdown', :filters => [:smartypants])35 tf.create(:name => 'textile', :description => 'Textile', :markup => 'textile')36 tf.create(:name => 'none', :description => 'None', :markup => 'none')37 23 end 38 24 end
