Coder Social home page Coder Social logo

开发环境用不到 rspec 这些吧 about 19wu HOT 8 CLOSED

19wu avatar 19wu commented on May 22, 2024
开发环境用不到 rspec 这些吧

from 19wu.

Comments (8)

saberma avatar saberma commented on May 22, 2024

以上语句是正确的,是要放在 development 组,因为 rspec-rails 会依赖 rspec-core

from 19wu.

doitian avatar doitian commented on May 22, 2024

有 rake tasks 和 generators 的都得放到 development

jasmine 是有 rake tasks

from 19wu.

nightire avatar nightire commented on May 22, 2024

实际上可以用写gem 'rspec'的啊,bundle会自动安装依赖

from 19wu.

saberma avatar saberma commented on May 22, 2024

@nightire gem 'rspec-rails' 已经从 rspec 抽取出来了,得手动写上去

from 19wu.

nightire avatar nightire commented on May 22, 2024

@saberma 我知道rspec-railsrspec抽取出来了,我的意思是bundler不就是做这个事情的吗?我试过只写gem 'rspec-rails',bundle会自动安装依赖的gems,没必要写。而且官方的文档也是这么推荐的。

from 19wu.

saberma avatar saberma commented on May 22, 2024

@nightire 你说的对,只要 rspec-rails 就可以了,pl 吧

我刚看下 rspec-rails 是虽然没有依赖 rspec,但是直接依赖了 rspec-core, rspec-mock 等,作用跟 rspec 一样的。

from 19wu.

nightire avatar nightire commented on May 22, 2024

Travis 测试 ruby-head 时超时了……原因不明。1.9.2和1.9.3通过。

from 19wu.

saberma avatar saberma commented on May 22, 2024

@nightire发另一个PR 先把 .travis.yml 中 head 类去掉吧,只用稳定版的就好。

from 19wu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.