Changeset 1633

Show
Ignore:
Timestamp:
02/14/08 08:59:14 (3 months ago)
Author:
pdcawley
Message:

Fixed a silly typo in one of the tests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/spec/controllers/accounts_controller_spec.rb

    r1622 r1633  
    88    User.stub!(:authenticate).and_return(@user) 
    99    User.stub!(:count).and_return(1) 
    10     controller.stub!(:this_blot).and_return(Blog.default) 
     10    controller.stub!(:this_blog).and_return(Blog.default) 
    1111  end 
    1212 
  • trunk/spec/views/comments/html_sanitization_spec.rb

    r1574 r1633  
    33describe "CommentSanitization", :shared => true do 
    44  before do 
    5     build_text_filters 
    65    @article = mock_model(Article, :created_at => Time.now, :published_at => Time.now) 
    76    Article.stub!(:find).and_return(@article) 
     
    2221                         :created_at => Time.now) do |klass| 
    2322      @comment = klass.new(comment_options) 
    24     end 
    25   end 
    26  
    27   def build_text_filters 
    28     TextFilter.delete_all 
    29     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') 
    3723    end 
    3824  end