Hi,
I was wondering if there is nay Ruby way of writing this views spec(without
using Capybara/Cucumber/Webrat helpers- should be just in rspec or
rspec-rails):
expect(rendered).to include("input class='toggle_m'
name='result_configuration[information]' type='checkbox' value='1'>")
expect(rendered).to include("<textarea class=details' disabled='disabled'
name=result_configuration[info][]'></textarea>")
Thing is, I need to see if the the checkbox is checked(meaning he value is
1) then textarea should be disabled. Any idea?
--
Please consider the environment before printing this email.
Regards,
Surya
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rspec/CAHGOqz5n5xt9A0swgyKAmigpdCLw0ECt8V%2Bo9qU5iq-_MRbkaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.