On Nov 26, 1:00 pm, Matt Wynne <
m...@mattwynne.net> wrote:
> I think it all comes down to how much your user / customer /
> stakeholder / product-owner person trusts you. We've started getting
> product owners to read the specs instead sometimes when we think it
> would be wasteful to write detailed cukes for everything. Some POs
> would balk at this, we're fortunate enough to have built up a good
> trusting relationship with them.
I would say that trust is not an issue here (of course I would). The
only thing being considered is what works best to communicate what is
happening without losing everybody, myself particularly, in the
verbiage.
I have done the following for now. If this does not prove acceptable
then I will try something else.
In feature file:
And we should see the model attributes input fields
In step file:
When /should see the model attributes input fields/ do
ur_fields = [
'name',
'description',
'effective_from',
'superseded_after'
]
ur_fields.each do |field|
# Preface selector value with '.' for class or '#' for id
# Use class here instead of id since we may have multiple lines in
a form
expected = ".input_#{field}"
message = "Expected css attribute #{expected} was not found."
assert_select("#{expected}", true, message)
end
end
Thanks for the input.
Regards,