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