Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on Jan 4, 2010
  1. Set up a structure for helpers. Add helper for setting samples.

    authored
    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.

    authored
    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.

    authored
  2. Small fix to the README.

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

    authored
    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.

    authored
    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.

    authored
  6. Rewrite expectations in preparation for delayed expectations.

    authored
    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.

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

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

    authored
  2. Implement stubbing.

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

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

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

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