百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

spork-rails

> 编程语言
开源

适用于 Rails 的 Spork 插件

182 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

适用于 Rails 的 Spork 插件

= Spork Rails {}[https://travis-ci.org/sporkrb/spork-rails]

This plugin is for running spork in Ruby-on-Rails applications.

== Version compatibility map:

Versions correspond to the latest Rails minor release. Gem is backwards compatible with rails as far as it makes sense to.

  • spork-rails 4.0.0: Rails 3.0.0 - 4.0.0

= Usage:

Add to your Gemfile:

gem "spork-rails"

(Since spork-rails depends on spork, it is not necessary to put both spork and spork-rails in your Gemfile)

== INSTALL:

NOTICE: If using spork with rails, use the spork-rails gem.

=== bundler:

Add to your Gemfile:

gem 'spork-rails'

== Usage

From a terminal, change to your project directory.

Then, bootstrap your test helper file. If running rspec,

spork rspec --bootstrap

Cucumber:

spork cucumber --bootstrap

TestUnit:

(Install the spork-testunit gem) spork test_unit --bootstrap

(If you don't specifiy a test framework, spork will find one and pick it.)

Follow the instructions.

Finally, run spork. A spec DRb server will be running!

spork

== Running tests

=== Specs

bundle exec rspec --drb spec

You can remove the requirement to use the --drb argument each time by adding it to your .rspec file.

=== Features (cucumber)

bundle exec cucumber features

(This assumes that you ran the cucumber-rails generator with the --spork option. If not, you'll need to add the --drb option to the appropriate profiles in cucumber.yml)

To run against one a different gemset (see features/gemsets), specifying a name like follows:

GEMSET=rails3.2 bundle exec cucumber features/

== TODO

  • Create spork-rails version to work agains Rails 2.x.
  • Run tests with rake

== See also

See https://github.com/sporkrb/spork for more instructions.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言