Now we can run the sample test "simple_test.rb" to see how appium works:
Please make sure the appium is running at background.
cd ~/Documents/appium-master/sample-code/examples/ruby
ruby simple_test.rb
Similarly, we can run other iOS tests like this. And it's better to read instruction at the beginning of each test script.