Yes, I have gone through the documentation before, and I read the reference
of 'assert_select' as well. But I still can not figure out a way of testing
attributes in a tag. What I know is we can use:
should have_tag(tag#id) or should have_tag(tag.class)
to select a tag, whereas I don't know how
On 9/13/07, Shaker [EMAIL PROTECTED] wrote:
Yes, I have gone through the documentation before, and I read the reference
of 'assert_select' as well. But I still can not figure out a way of testing
attributes in a tag. What I know is we can use:
should have_tag(tag#id) or should
On 9/13/07, Shaker [EMAIL PROTECTED] wrote:
I can not find much
information about the should have_tag syntax in Rspec.
http://rspec.rubyforge.org/rdoc-rails/classes/Spec/Rails/Matchers.html#M11
___
rspec-users mailing list
On 9/13/07, Shaker [EMAIL PROTECTED] wrote:
Sorry, that's another spec caused the error. It is working. Thank you very
much
Glad you got it worked out.
Cheers,
David
Shaker wrote:
Hello
To spec the example I mentioned before, I wrote the spec as what you
suggested
Sorry, that's another spec caused the error. It is working. Thank you very
much
Shaker wrote:
Hello
To spec the example I mentioned before, I wrote the spec as what you
suggested
#../view/group/index_spec.rb
describe /group/_index_spec do
it should call JS function when click the
Hello
To spec the example I mentioned before, I wrote the spec as what you
suggested
#../view/group/index_spec.rb
describe /group/_index_spec do
it should call JS function when click the button do
render '/group/_index'
response.should have_tag(input[onclick=?], update())