Sha256: 9147c1b27274e41e2ddd261edaf649acdabeec28ad032ab6432fd93942779ec5

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'
require 'context'

class ContextTest < Test::Unit::TestCase
  it "should create a test" do
    self.class.expect { 2.to == 1 }
    assert self.respond_to?("test: expect (2.to == 1)")
  end

  context "in a context" do
    it "should grab the name of the context" do
      self.class.expect { 2.to == 1 }
      assert self.respond_to?("test: in a context expect (2.to == 1)"), self.class.instance_methods.grep(/test/).inspect
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
giraffesoft-zebra-0.0.1 test/context_test.rb