2009/6/13 Colin Law <[email protected]>:
> 2009/6/13 Marnen Laibow-Koser <[email protected]>:
>>
>> Colin Law wrote:
>> [...]
>> } I cannot see how to check that the break is at the
>>> right point in the text.
>>
>> What does the "right point" consist of?  In other words, how (English,
>> not Ruby) would you define the break being at the right point?
>>
>
> Repeating my original post for clarity:
>> I have:
>> <p>some text<br />some more text</p>
>
> The right point for the break is after 'some text' and before 'some more text'
> As I said I can see how to use assert_select to check that the
> complete text is there, and how to check that the break is there, but
> I do not see how to check that the break is after 'some text' and
> before 'some more text'. I am no doubt missing something obvious.
> Of course in my real application the text is not as in this simplified 
> example.

Perhaps I should clarify further.  In my functional test I currently
have something like
assert_select "p", "some textsome more text"  # checks the text is correct
assert_select "p>br", 1  # checks p contains br
What I am lacking is a check that the <br /> is in the correct place
in the text.

Colin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to