Ruby on Rails Wednesday, July 30, 2014

On Wed, July 30, 2014 10:42, Matt Jones wrote:
> The underlying issue is mentioned here in Minitest:
>
> https://github.com/seattlerb/minitest/blob/master/lib/minitest/assertions.rb#L8-L12
>
> Whatever is including the `assert` functions needs to also define the
> `assertions` accessor.
>
> Hard to advise further without seeing the relevant code in
> hll_dbms_steps.rb.
>

The relevant code seems to be:

<pre>
# features/step_definitions/hll_dbms_steps.rb

def find_table_model_for( tname )
tname = tname.gsub(/ +/,"_").downcase.singularize.camelcase
expected = true
actual = defined?( tname )
message = "Expected #{tname} model class but it is not defined"
assert( ( expected == actual ), message )
end

When /should have (?:a|the) table (?:name|call)ed "?(\w+)"?/ do |tname|
find_table_model_for( tname )
end
</pre>

--
*** E-Mail is NOT a SECURE channel ***
James B. Byrne mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cb544293e2e5b4c98dde02d2903df02b.squirrel%40webmail.harte-lyne.ca.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment