TestingWithFrank / Frank

Automated acceptance tests for native iOS apps
http://testingwithfrank.github.io/
Apache License 2.0
215 stars 57 forks source link

Operations returning a BOOL broken #27

Open ondrejhanslik opened 10 years ago

ondrejhanslik commented 10 years ago

Calling a method using frankly_map has an invalid return value when the method returns a BOOL.

Broken by this commit https://github.com/TestingWithFrank/Frank/commit/947f28786169fe0a0c05c8dae1a6f21be5eccf02

The result is that booleans are returned to ruby as integers. Unfortunately, all integers in ruby are false breaking a lot of the test code.

I understand that @encode(BOOL) == @encode(signed char) but I think that BOOL is much more often used as a return value than a signed char.