## before
$ rake spec output=tap
ok 34 - works with Assets
ok 34 - works with hash
…
ok 34 - should work
1..34
# 34 tests, 61 assertions, 0 failures, 0 errors
## after
$ rake spec output=tap
ok 1 - works with Assets
ok 2 - works with hash
…
ok 34 - should work
1..34
# 34 tests, 61 assertions, 0 failures, 0 errors
A following spec will raise an ArgumentError.
describe "Application 'test'" do
it "has one window"
end
`instance_eval' will pass a receiver object into block.
When use a block which created by lambda, it should accept a receiver object as block parameter.
b = lambda { self.upcase }
"test".instance_eval(&b) #=> wrong number of arguments (1 for 0) (ArgumentError)
The files that contains only constants (like a configuration file) have been ignored in detection dependency.
$ cat app/config.rb
USER_NAME = "Watson"
MAIL = "watson1978@gmail.com"
When customers does not install older iOS simulator,
`rake target' task will fail with assertion, like:
$ rake target=5.0
Build ./build/iPhoneSimulator-5.1-Development
Compile ./app/app_delegate.rb
Link ./build/iPhoneSimulator-5.1-Development/TestTwitter.app/TestTwitter
Create ./build/iPhoneSimulator-5.1-Development/TestTwitter.dSYM
Simulate ./build/iPhoneSimulator-5.1-Development/TestTwitter.app
Assertion failed: (system_root != nil), function main, file sim.m, line 937.
rake aborted!
This message looks not kindly to customers.
After changing:
$ rake target=5.0
Build ./build/iPhoneSimulator-5.1-Development
Compile ./app/app_delegate.rb
Link ./build/iPhoneSimulator-5.1-Development/TestTwitter.app/TestTwitter
Create ./build/iPhoneSimulator-5.1-Development/TestTwitter.dSYM
Simulate ./build/iPhoneSimulator-5.1-Development/TestTwitter.app
Not found iOS 5.0 simulator.
rake aborted!