
Ruby
iteye_15098
这个作者很懒,什么都没留下…
展开
-
让Capybara支持Firebug
让Capybara支持Firebug,这样可以方便调试页面的测试。 只需要: gem install capybara-firebug原创 2012-11-13 17:56:15 · 199 阅读 · 0 评论 -
ruby bundler使用技巧
bundle exec 在当前的bundle环境下,运行一个脚本 单独运行bundle, 相当于bundle install在项目下面建立:vendor/cache 目录后,再次运行bundle,就会把响应的gem缓存一份在该目录在准备打包部署的时候,运行: bundle --local --deployment ,这时会在vendor目录下面生成:vend...2012-11-26 17:12:25 · 525 阅读 · 0 评论 -
organize rspec2 tests into 'unit' (fast) and 'integration' (slow) categories
I wish I can use these under commands to run the tests. rake spec # run all testsrake spec:integration # run all integration testsrake spec:unit # run al...2012-12-26 11:17:25 · 232 阅读 · 0 评论 -
在Sinatra中灵活地配置Environments
在Sinatra中灵活的配置Environments 在Sinatra中有三个预先定义的环境属性值,包括:development, test, production.这个当前所处的环境的值还可以通过RACK_ENV这个环境变量来设置。如果什么都不设置,默认就是develpment。 之所以要区分不同环境的值,主要是我们在不同的环境下需要采用不同的配置。例如:开发环境采用p...2012-12-27 14:52:44 · 270 阅读 · 0 评论