Skip to content

Instantly share code, notes, and snippets.

@a2ikm
a2ikm / gist:3303116
Created August 9, 2012 10:37
rspec
shared_examples_for "hogehoge" do
it "should be_valid" do
check_count = 10
check_count.times do
sample_count = 1000
counts = {1 => 0, 2 => 0}
sample_count.times do
counts[xxx[:id]] += 1
end
(counts[1] < counts[2]).should be_true