find_by_name throws
Opened this issue · 0 comments
yourtallness commented
The following code will attempt to do a select on nil, if there are no tests on one's litmus account:
def self.find_by_name(name)
self.list.select { |t| t['name'] == name }.first
end
=> NoMethodError (private method `select' called for nil:NilClass)