Monday, July 21, 2014

RSpec 3 matcher equivalent to =~


  expect([1,2]).to contain_exactly(2,1)

Credit: match_array matcher now available as contain_exactly

No comments:

Clojure has lesser typing error problems than the others well-known dynamic typing languages

Give these snippets a try. // JS function foo () {   bar(1) } # Ruby def foo   bar(1) end ; Clojure (defn foo []    (bar 1)) As yo...