Skip to content

Develop new API #1

@bowsersenior

Description

@bowsersenior

2 issues should be addressed:

  1. Need a mechanism to create a test case (currently using a lambda) so that test results can be collected and individual tests can be run
  2. Allow stubs to be created without using a block. Blocks were a cheap way of safely restoring pre-stub values. The test group mechanism can keep track of stubs and de-stub when it exits.

Something along the following lines:

test_group do
  stub(Object, :method => :foo, :return => 'bar')

  assert Object.foo, :== => 'bar'
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions