我在Windows 7上使用Aptana Studio 3在Ruby中開發。但是,當我嘗試使用內置終端來運行rspec或git等命令時,我得到的是奇怪的字符而不是縮進。在下面的例子中,除了這些奇怪的字符外,一切正常。實際上,問號字符在終端中顯示爲左箭頭。Aptana Studio 3 Windows中的終端奇怪縮進字符
我試着搜索[aptana] [終端],但找不到其他人有類似的問題。有人認識到這裏發生了什麼?
[email protected] ~/My Documents/Aptana Studio 3 Workspace/user-service (master)
$ rspec spec/service_spec.rb
D, [2013-07-22T19:19:24.021708 #6564] DEBUG -- : env: test
D, [2013-07-22T19:19:24.080711 #6564] DEBUG -- : db/test.sqlite3 database connection established...
D, [2013-07-22T19:19:24.222719 #6564] DEBUG -- : fixture data created in test database...
service
GET on /api/v1/users/:id
?[32m should return a user by name?[0m
?[32m should return a user with an email?[0m
?[32m should not return a user's password?[0m
?[32m should return a user with a bio?[0m
?[32m should return a 404 for a user that doesn't exist?[0m
POST on /api/v1/users
?[31m should create a user (FAILED - 1)?[0m
Failures:
1) service POST on /api/v1/users should create a user
?[31mFailure/Error:?[0m ?[31mlast_response.should be_ok?[0m
?[31mexpected ok? to return true, got false?[0m
?[36m # ./spec/service_spec.rb:73:in `block (3 levels) in <top (required)>'?[0m
Finished in 1.2 seconds
?[31m6 examples, 1 failure?[0m
Failed examples:
?[31mrspec ./spec/service_spec.rb:67?[0m ?[36m# service POST on /api/v1/users should create a user?[0m
謝謝!那確實回答了我的問題。 Sux關於aptana。 –