Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2013-02-19 08:39:28 +0000
committerPhil Nash2013-02-19 08:39:28 +0000
commit429699e7975a4aab2b836571ebc511c03e98a902 (patch)
treeb8fc592479df2b750442474ebe636534078bf0bd /include
parentf45e09a41697952aea5ef2594cd50c60c198d9b0 (diff)
downloadcatch3-429699e7975a4aab2b836571ebc511c03e98a902.tar.gz
Added className to TestCase in Obj-C
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_objc.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/internal/catch_objc.hpp b/include/internal/catch_objc.hpp
index eb8c5264..1769e55b 100644
--- a/include/internal/catch_objc.hpp
+++ b/include/internal/catch_objc.hpp
@@ -92,8 +92,9 @@ namespace Catch {
std::string testCaseName = methodName.substr( 15 );
std::string name = Detail::getAnnotation( cls, "Name", testCaseName );
std::string desc = Detail::getAnnotation( cls, "Description", testCaseName );
+ const char* className = class_getName( cls );
- getMutableRegistryHub().registerTest( makeTestCase( new OcMethod( cls, selector ), "", name.c_str(), desc.c_str(), SourceLineInfo() ) );
+ getMutableRegistryHub().registerTest( makeTestCase( new OcMethod( cls, selector ), className, name.c_str(), desc.c_str(), SourceLineInfo() ) );
noTestMethods++;
}
}