Tag Archives: ruby

Understanding and Applying Artificial Neural Networks : Engineering Perspective

Lasts week (15th November to 19th November), NITTTR (National Institute of Technical Teachers Training and Research) had organized a course on Artificial Neural Networks at Government College Of Engineering – Farmagudi, Goa. I was appointed as course faculty for this event. Personally, I do not believe in concept of teaching. Humans are smart and intelligent [...]

RSpec Matchers: Be careful while testing boolean values

While testing methods that return boolean values in ruby (the ones that end in ‘?’), try to avoid following matchers: method_returning_true?.should be_true or method_returning_false?should be_false This is because, ‘be_true’ and ‘be_false’ matchers considers ‘nil’ to be false and anything other than ‘nil’ to be true. When we write methods in ruby which end with question [...]