Skip to content
Commits on Jan 4, 2010
  1. Set up a structure for helpers. Add helper for setting samples.

    committed
    All test functions, setups, and teardowns are now extended with objects found
    on Moksi.Helpers. The samples helper allows you to set HTML samples in the
    document using setSample, addSample, and clearSamples.
  2. Add a returns option to the receives expectation.

    committed
    The returns option allows you to specify the value to return from the stubbed
    function.
Commits on Dec 23, 2009
  1. More fixes to the README.

    committed
  2. Small fix to the README.

    committed
  3. Change assertions to entirely self-contained functions.

    committed
    When assertions are functions we can make them generate failure messages based
    on the evaluated expectation. This is exactly what changed for the receives
    expectation. It now lists the number of invocations when the expected number
    of invocations wasn't met.
  4. Implement method receiving expectations.

    committed
    Test whether an object receives a method during the testrun. This is done by
    stubbing the original method and registering invocation to the original
    method. The invocation is tested at the end of the testrun with a delayed
    assertion.
  5. Refactor expectations.

    committed
  6. Rewrite expectations in preparation for delayed expectations.

    committed
    Instead of hardcoding assertions, they're now closures which can be stored
    for a later time. This is groundwork for implementing expected invocation
    of method assertions.
Commits on Dec 9, 2009
  1. Update the dist version.

    committed
Commits on Nov 14, 2009
  1. Minor style change.

    committed
Commits on Nov 2, 2009
  1. Update generated moksi.js.

    committed
  2. Implement stubbing.

    committed
    - Add Moksi.stub(object, name, definition)
    - Add Moksi.unstub(object, name)
    - Add Moksi.unstubAll()
Commits on Oct 16, 2009
  1. Update the TODO list.

    committed
Commits on Oct 15, 2009
  1. Bump version to 0.2.

    committed
  2. Run a setup before every test and teardown after every test. Make the…

    committed
    … suite available to the tests.
Something went wrong with that request. Please try again.