ArgumentError: assertion message must be String or Proc using assert_select?

So, the assert_select documentation shows the following example, passing a block in.

So, the assert_select documentation shows the following example, passing a block in: assert_select "ol" do |elements| elements. Each do |element| assert_select element, "li", 4 end end So what if you did something like... assert_select 'h1' do |elements| elements. Length == 0?

Fail elements. Each do |element| element. Text ~= /Key Dates/?

Fail end end Which basically fails if it finds the pattern OR if the number of h1 elements is zero. Obviously you would change the conditions to match what it is you're trying to test for, but does that get you any closer to what you need?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions