Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
evanc3
@evanc3
会员
第 4308 位会员 / 2012-11-01

0 篇帖子 / 5 条回帖
0 关注者
0 正在关注
0 收藏
GitHub Public Repos
More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • RSpec 如何只运行一个 it at 2014年01月13日

    最近做 Ruby on Rails Tutorial 的教程,裡面有這樣的範例:

    $ rspec spec/requests/user_pages_spec.rb -e "signup page"

    書中的說明: The -e here arranges to run just the examples whose description strings match "signup page". Note in particular that this is not the substring "signup", which would run all the test

    另外找到 Stackoverflow 上也有一篇:http://stackoverflow.com/questions/6518425/test-only-one-it-or-describe-with-rspec

  • Rails 能胜任企业级应用吗 at 2013年09月12日

    #16 楼 @small_fish__ 那 GitHub Enterprise 呢?

  • 怎么提高英语表达能力?我发现我在 stackOverflow 上面提问,老外们都不明白我在问什么.... at 2013年08月27日

    還沒在 Stackoverflow 問過問題(因為我的問題多半都搜尋得到答案,應該是我還太弱),常看到有兩種狀況被 down vote:

    • 問太簡單的問題,多半都是直接貼錯誤訊息這種 Google 就能找到的答案
    • 問題的描述太簡單,只有簡單幾句話,通常會被 comment 問:What have you tried?
  • Visual Studio 是一个连删除行的功能都没有的烂 IDE at 2013年06月03日

    如果要在 Visual Studio 模擬 Vim,VsVim 這個 extension 不錯

  • jQuery animate 的一个小问题 at 2013年05月22日

    在 stackoverflow 找到一個解答:http://stackoverflow.com/a/13710765/1008230

    $('.forward').click(function() {
      if ($(".box").filter(':animated').length > 0) {
          return false;
      }
      $('.box').animate({left: '+=80px'});
    });
    

    是利用 :animated 判斷是否正在動畫 不知哪種做法較好?

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English