Skip to content

Commit

Permalink
Make sure mock objects have a namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurschreiber committed Jun 7, 2013
1 parent 3e136f4 commit 0954a38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/spec/mocks/nx/mock.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ namespace eval ::Spec::Mocks::nx {
:property {name ""}
:property {options {}}

:public method init {} {
:require namespace
}

:protected method unknown { method_name args } {
if { ![:null_object?] } {
[:__mock_proxy] raise_unexpected_message_error $method_name {*}$args
}
}
}
}
}

0 comments on commit 0954a38

Please sign in to comment.