Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

textiled = false

#16

The acts_as_textiled tests fail for me (Rails 1.2.3). The culprit is textiled = false, which doesn't appear to be working.

Reported by Hugh · June 3rd, 2007 @ 04:35 AM

State: resolved
Milestone: none
Assigned to: Chris Wanstrath Chris Wanstrath

Activity

  1. Chris Wanstrath
    Chris Wanstrath
    • State changed from new to open

    What version of Rails?

    Oh, and these tests suck. I may have to update them -- there is srsly no need for a database to be involved. What was I thinking!

    June 3rd, 2007 @ 04:35 AM

  2. Hugh
    Hugh

    Rails 1.2.3, Ruby 1.8.5

    The two test failures:

     1) Failure:
    test_assocation_textile_toggle(TestTextiled) [vendor/plugins/acts_as_textiled/test/test_textiled.rb:81]:
    <"\"RedHanded\":http://redhanded.hobix.com"> expected but was
    <"<a href=\"http://redhanded.hobix.com\">RedHanded</a>">.
    
     2) Failure:
    test_desc_toggle_textile(TestTextiled) [vendor/plugins/acts_as_textiled/test/test_textiled.rb:53]:
    <"__Beautify__ your IRb prompt"> expected but was
    <"<i>Beautify</i> your <strong>IRb</strong> prompt">.
    

    Also I've confirmed that textiled = false does not work in the console:

    >> p = Product.new(:title => "Test Product", :description => "This is a test product")
    => #<Product:0x3506ccc @textiled={"title"=>nil, "description"=>nil}, new_recordtrue, attributes{"title"=>"Test Product", "description"=>"This is a test product"}
    >> p.description
    => "<p>This is a <em>test</em> product</p>"
    >> p.textiled = false
    => false
    >> p.description
    => "<p>This is a <em>test</em> product</p>"
    

    June 3rd, 2007 @ 04:35 AM

  3. Chris Wanstrath
    Chris Wanstrath
    • State changed from open to resolved

    Okay, try now. Refactored tests, fixed that bug, etc. Thanks.

    June 3rd, 2007 @ 04:35 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.