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

Version Path
test-queue-0.7.0 test/samples/sample_minispec.rb
test-queue-0.6.0 test/samples/sample_minispec.rb
test-queue-0.5.0 test/samples/sample_minispec.rb
test-queue-patched-0.4.5 test/samples/sample_minispec.rb
test-queue-patched-0.4.4 test/samples/sample_minispec.rb
test-queue-patched-0.4.3 test/samples/sample_minispec.rb
test-queue-0.4.2 test/samples/sample_minispec.rb
test-queue-0.4.1 test/samples/sample_minispec.rb
test-queue-0.4.0 test/samples/sample_minispec.rb
test-queue-0.3.1 test/samples/sample_minispec.rb
test-queue-0.3.0 test/samples/sample_minispec.rb