Skip to content

Instantly share code, notes, and snippets.

Avatar
🌈
It's complicated?

Ryan Davis zenspider

🌈
It's complicated?
View GitHub Profile
View github_unwatch_org.rb
#!/usr/bin/env ruby -ws
$d ||= false
require "isolate"
Isolate.now! name:"github_unwatch" do
gem "octokit"
gem "pry"
end
require "pry" if $d
@ryanb
ryanb / expectations.md
Created Dec 6, 2012
Alternative expectation interface for MiniTest and RSpec
View expectations.md

Expectations

I took the ideas presented here and built a gem called Mustard. Check it out!

There are several expectation/assertion interfaces available for writing tests/specs. Here are some issues I have with them.

Test::Unit/MiniTest

  • The order of assert_equals feels backwards
  • Oh wait, that should be assert_equal (that too)