Sha256: dc3022c5189f141f5dc94439e43571052381455c3e27ad56cd7e80187e8ae9b3
Contents?: true
Size: 616 Bytes
Versions: 11
Compression:
Stored size: 616 Bytes
Contents
require 'minitest/spec' class Meme def i_can_has_cheezburger? "OHAI!" end def will_it_blend? "YES!" end end describe Meme do before do @meme = Meme.new end describe "when asked about cheeseburgers" do it "must respond positively" do sleep 0.1 @meme.i_can_has_cheezburger?.must_equal "OHAI!" end end describe "when asked about blending possibilities" do it "won't say no" do sleep 0.1 @meme.will_it_blend?.wont_match /^no/i end if ENV["FAIL"] it "fails" do @meme.will_it_blend?.must_equal "NO!" end end end end
Version data entries
11 entries across 11 versions & 2 rubygems