public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
fixed unit tests failing because filter not being defined as 
attr_accessible can not be set from attributes=

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@3000 
567b1171-46fb-0310-a4c9-b4bef9110e78
psq (author)
Mon Oct 22 00:22:38 -0700 2007
commit  d806fa1ba6b092697b1146cbf3fd0f8e039cf0e6
tree    4500439f9d41fe571c666dcf066976192617fd6c
parent  b0e0b93e9339971132d134f25f92e9125e92c655
...
41
42
43
44
 
45
46
47
...
41
42
43
 
44
45
46
47
0
@@ -41,7 +41,7 @@ class CommentDropTest < Test::Unit::TestCase
0
   end
0
   
0
   def test_should_show_filtered_text
0
- comment = contents(:welcome).comments.create :body => '*test* comment', :author => 'bob', :author_ip => '127.0.0.1', :filter => 'textile_filter'
0
+ comment = contents(:welcome).comments.create :body => '*test* comment', :author => 'bob', :author_ip => '127.0.0.1'
0
     assert_valid comment
0
     assert_equal 'textile_filter', comment.filter
0
     liquid = comment.to_liquid
...
10
11
12
13
 
14
15
16
...
28
29
30
31
 
32
33
34
...
77
78
79
80
 
81
82
83
...
97
98
99
100
 
101
102
103
...
10
11
12
 
13
14
15
16
...
28
29
30
 
31
32
33
34
...
77
78
79
 
80
81
82
83
...
97
98
99
 
100
101
102
103
0
@@ -10,7 +10,7 @@ class CommentTest < Test::Unit::TestCase
0
 
0
   def test_should_add_comment_and_retrieve_attributes_from_article
0
     assert_difference Comment, :count do
0
- comment = contents(:welcome).comments.create :body => 'test comment', :author => 'bob', :author_ip => '127.0.0.1', :filter => 'textile_filter'
0
+ comment = contents(:welcome).comments.create :body => 'test comment', :author => 'bob', :author_ip => '127.0.0.1'
0
       assert_equal contents(:welcome).site_id, comment.site_id
0
       assert_equal contents(:welcome).title, comment.title
0
       assert_equal contents(:welcome).published_at, comment.published_at
0
@@ -28,7 +28,7 @@ class CommentTest < Test::Unit::TestCase
0
 
0
   def test_should_allow_set_filter_on_comment
0
     old_times = contents(:welcome).comments.collect &:updated_at
0
- comment = contents(:welcome).comments.create :body => 'test comment', :author => 'bob', :author_ip => '127.0.0.1', :filter => 'markdown_filter'
0
+ comment = contents(:welcome).comments.create :body => 'test comment', :author => 'bob', :author_ip => '127.0.0.1'
0
     comment.filter = 'markdown_filter'
0
     assert_valid comment
0
     assert_equal old_times, contents(:welcome).comments(true).collect(&:updated_at)
0
@@ -77,7 +77,7 @@ class CommentTest < Test::Unit::TestCase
0
 
0
   def test_should_clean_up_email_and_url
0
     comments = contents(:welcome).comments
0
- options = {:body => 'test', :author => 'bob', :author_ip => '127.0.0.1', :filter => 'textile_filter'}
0
+ options = {:body => 'test', :author => 'bob', :author_ip => '127.0.0.1'}
0
     comment = comments.build options.merge(:author_email => ' bob@example.com ')
0
     assert_valid comment
0
     assert_equal 'bob@example.com', comment.author_email
0
@@ -97,7 +97,7 @@ class CommentTest < Test::Unit::TestCase
0
 
0
   def test_should_validate_emails
0
     comments = contents(:welcome).comments
0
- options = {:body => 'test', :author => 'bob', :author_ip => '127.0.0.1', :filter => 'textile_filter'}
0
+ options = {:body => 'test', :author => 'bob', :author_ip => '127.0.0.1'}
0
     comment = comments.build options.merge(:author_email => 'bob@example.com')
0
     assert_valid comment
0
     comment = comments.build options.merge(:author_email => 'bobexample.com')

Comments

    No one has commented yet.