摘要:
1 只测试匹配到的字符串涉及的specsrspec -e expect(page).to have_content2 只测试指定文件rspec spec/requests/static_pages_spec.rb3 指定文件并指定字符串rspec spec/requests/static_pages_spec.rb -e expect(page).to have_content 阅读全文
posted @ 2014-03-14 15:25
秋叶leaf
阅读(489)
评论(0)
推荐(0)
摘要:
1 新建一个gem:> bundle gem my_mongoid create my_mongoid/Gemfile create my_mongoid/Rakefile create my_mongoid/LICENSE.txt create my_mongoid/README.md create my_mongoid/.gitignore create my_mongoid/my_mongoid.gemspec create my_mongoid/lib/my_mongoid.rb create my_mongoid/lib/my_mongoid/version.rb新建gem所依 阅读全文
posted @ 2014-03-14 11:53
秋叶leaf
阅读(550)
评论(0)
推荐(0)
摘要:
Vagrant,基于Ruby开发,使用开源 VirtualBox 作为虚拟化支持,可以轻松的跨平台部署。一. 下载资源:1 下载安装 VirtualBox :https://www.virtualbox.org/2 下载安装 Vagrant :http://www.vagrantup.com/3 下载需要使用的 box :官方提供的范例:http://files.vagrantup.com/precise32.box还可以在 http://www.vagrantbox.es/ 这里下载更多不同系统甚至是已经配置好环境直接可以用的box,虽然可以直接在Vagrant直接使用网址,由Vagrant 阅读全文
posted @ 2014-03-14 10:25
秋叶leaf
阅读(936)
评论(0)
推荐(0)
浙公网安备 33010602011771号