Re: [Rails] assert_select for textvalue

2010-08-31 Thread Colin Law
On 30 August 2010 17:41, Colin Law wrote: > On 30 August 2010 16:42, Chris Mear wrote: >> On 27 August 2010 22:08, Colin Law wrote: >>> I have the following html >>> textvalue >>> I can use >>> assert_select "p>b", "text" >>> to check the text portion, and >>> assert_select "p", "value" >>> to c

Re: [Rails] assert_select for textvalue

2010-08-30 Thread Colin Law
On 30 August 2010 16:42, Chris Mear wrote: > On 27 August 2010 22:08, Colin Law wrote: >> I have the following html >> textvalue >> I can use >> assert_select "p>b", "text" >> to check the text portion, and >> assert_select "p", "value" >> to check that the value appears in a .  I cannot work out

Re: [Rails] assert_select for textvalue

2010-08-30 Thread Chris Mear
On 27 August 2010 22:08, Colin Law wrote: > I have the following html > textvalue > I can use > assert_select "p>b", "text" > to check the text portion, and > assert_select "p", "value" > to check that the value appears in a .  I cannot work out how to > check that the two are in the same .  I hav

[Rails] assert_select for textvalue

2010-08-27 Thread Colin Law
I have the following html textvalue I can use assert_select "p>b", "text" to check the text portion, and assert_select "p", "value" to check that the value appears in a . I cannot work out how to check that the two are in the same . I have used assert_select for much more complex tasks but my min

[Rails] assert_select embedded in text

2009-06-12 Thread Colin Law
Can someone help with an assert_select problem please? I have: some textsome more text I see how to use assert_select to check that the text in the paragraph is "some textsome more text" and I can check that the paragraph contains a break. I cannot see how to check that the break is at the right

[Rails] assert_select

2009-05-20 Thread Jim Burgess
Hi, Testing the view of an application with functional tests, how would one go about checking that there are a certain number of elements present on a page, which all belong to a certain class. I tried: assert_select "form" do assert_select "span", :class=> "required_field", :co

[Rails] Assert_select with count 0

2009-02-02 Thread Aa Wilson
Hello, all. This is short and simple. I have this statement in a functional test: assert_select 'input' do assert_select "[name=?]", {:count => 0,:text =>/areas\[1\]/} end This assertion gives me the following: 1) Failure: test_areas(SampleControllerTest) [c:/ruby/lib/ruby/gem