# RSpec

**URL:** https://www.ruby-forum.com/c/testing/rspec/25.md?page=66

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 67

---

## [Rspec and prawn](https://www.ruby-forum.com/t/rspec-and-prawn/162456)

<div class="topic-metadata">

**Author:** [@deadinplastic](https://www.ruby-forum.com/u/deadinplastic)\
**Replies:** 4\
**Last updated:** [March 10, 2009, 1:50pm UTC](https://www.ruby-forum.com/t/rspec-and-prawn/162456 "2009-03-10T13:50:37Z")

</div>

Hi, I’ve just started using prawn but am at a bit of a loss how to create my view specs for it. For example, my normal view spec has things like response.should have\_tag(“blah”) or response.body.should =~ /somethin…

---

## [Cucumber 0.2 final release date?](https://www.ruby-forum.com/t/cucumber-0-2-final-release-date/160782)

<div class="topic-metadata">

**Author:** [@aidy\_lewis](https://www.ruby-forum.com/u/aidy_lewis)\
**Replies:** 3\
**Last updated:** [March 9, 2009, 4:48pm UTC](https://www.ruby-forum.com/t/cucumber-0-2-final-release-date/160782 "2009-03-09T16:48:38Z")

</div>

Hi, I know this seems all take and no give, but do we have an estimated final release date for Cucumber 0.2? Thanks Aidy Celerity, Cucumber and Firewatir:

---

## [Rails 2.2.2 Problem - button\_to\_function - nil.with\_output\_buffer](https://www.ruby-forum.com/t/rails-2-2-2-problem-button-to-function-nil-with-output-buffer/162374)

<div class="topic-metadata">

**Author:** [@karmacoma](https://www.ruby-forum.com/u/karmacoma)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 12:54pm UTC](https://www.ruby-forum.com/t/rails-2-2-2-problem-button-to-function-nil-with-output-buffer/162374 "2009-03-09T12:54:13Z")

</div>

Hi, I am in the process of upgrading my rails application to be compatible with rails 2.2.2. All is going well apart from a few remaining issues. My problem is: I am experiencing a test failure with what seems to be …

---

## [Route\_for](https://www.ruby-forum.com/t/route-for/162352)

<div class="topic-metadata">

**Author:** [@hayafirst](https://www.ruby-forum.com/u/hayafirst)\
**Replies:** 4\
**Last updated:** [March 9, 2009, 5:53am UTC](https://www.ruby-forum.com/t/route-for/162352 "2009-03-09T05:53:07Z")

</div>

Get restful-authentication and rspec trunk from github. And a couple tests fail. One of them is this assertion: route\_for(:controller =\> ‘users’, :action =\> ‘destroy’, :id =\> ‘1’).should == “/users/1” error msg is: …

---

## [\[cucumber\] Cucumber and Chronic](https://www.ruby-forum.com/t/cucumber-cucumber-and-chronic/161720)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 6\
**Last updated:** [March 7, 2009, 8:16pm UTC](https://www.ruby-forum.com/t/cucumber-cucumber-and-chronic/161720 "2009-03-07T20:16:37Z")

</div>

This may have been discussed before but just wanted to pass along a killer one-two punch that we stumbled upon as an excellent and natural extension to our domain language around the expression and testing of complex …

---

## [What has RSpec got against stack traces?](https://www.ruby-forum.com/t/what-has-rspec-got-against-stack-traces/162233)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 14\
**Last updated:** [March 7, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/what-has-rspec-got-against-stack-traces/162233 "2009-03-07T19:47:49Z")

</div>

Here’s an error message. The details are not important (beyond to\_xml on a virtual AR database via fixture\_dependencies). I know how to work the actual problem. NoMethodError in ‘BlogMindMap should create XML’ unde…

---

## [Trouble with (Rails) Nested Model Directories](https://www.ruby-forum.com/t/trouble-with-rails-nested-model-directories/162152)

<div class="topic-metadata">

**Author:** [@mudphone](https://www.ruby-forum.com/u/mudphone)\
**Replies:** 3\
**Last updated:** [March 7, 2009, 4:14pm UTC](https://www.ruby-forum.com/t/trouble-with-rails-nested-model-directories/162152 "2009-03-07T16:14:19Z")

</div>

Hi folks, In order to bring some order to the many model classes that I have under /app/models, I’m created a new directory (for example): /app/models/nestdir I’ve added the required configuration line in environment…

---

## [Shared behaviors in Cucumber?](https://www.ruby-forum.com/t/shared-behaviors-in-cucumber/162222)

<div class="topic-metadata">

**Author:** [@hoshbad](https://www.ruby-forum.com/u/hoshbad)\
**Replies:** 3\
**Last updated:** [March 7, 2009, 2:42am UTC](https://www.ruby-forum.com/t/shared-behaviors-in-cucumber/162222 "2009-03-07T02:42:45Z")

</div>

Hello RSpec group, is there a way to do RSpec-style shared behaviors in Cucumber? Or something similar?

---

## [Have\_tag + quantity - question](https://www.ruby-forum.com/t/have-tag-quantity-question/162150)

<div class="topic-metadata">

**Author:** [@mawiniarski](https://www.ruby-forum.com/u/mawiniarski)\
**Replies:** 5\
**Last updated:** [March 6, 2009, 11:44pm UTC](https://www.ruby-forum.com/t/have-tag-quantity-question/162150 "2009-03-06T23:44:03Z")

</div>

Greetings, Is there a way to check quantity of tags? Something like this: response.should have\_tag(‘div’).quantity(4) Thanks.

---

## [Webrat - Fill in text field by id](https://www.ruby-forum.com/t/webrat-fill-in-text-field-by-id/162198)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 6\
**Last updated:** [March 6, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/webrat-fill-in-text-field-by-id/162198 "2009-03-06T22:21:23Z")

</div>

Is there a way to locate and ‘fill in’ a text field (or check a check box, select an option, etc.) by id? It seems that the fill\_in method takes either the text of the label pointing to the field or the field name. …

---

## [Cucumber + Webrat + Selenium + ActionMailer](https://www.ruby-forum.com/t/cucumber-webrat-selenium-actionmailer/160685)

<div class="topic-metadata">

**Author:** [@voodoorai2000](https://www.ruby-forum.com/u/voodoorai2000)\
**Replies:** 13\
**Last updated:** [March 6, 2009, 12:23pm UTC](https://www.ruby-forum.com/t/cucumber-webrat-selenium-actionmailer/160685 "2009-03-06T12:23:19Z")

</div>

Hi, We are upgrading to cucumber 0.1.99 in the process we also upgraded to the latest versions of webrat and rspec. However now we are having difficulties checking for ActionMailer.deliveries in the selenium feature…

---

## [Help make rspec-1.2 a smooth upgrade](https://www.ruby-forum.com/t/help-make-rspec-1-2-a-smooth-upgrade/162170)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [March 6, 2009, 12:02pm UTC](https://www.ruby-forum.com/t/help-make-rspec-1-2-a-smooth-upgrade/162170 "2009-03-06T12:02:18Z")

</div>

Hi all, I’m planning to release rspec-1.2 and rspec-rails-1.2 shortly after rails-2.3 goes final (rails-2.3.1 was just released as RC2). There are a couple of loose ends right now, and I need your help in two importa…

---

## [Rspec 1.1.99.10 rails 2.3 - help needed](https://www.ruby-forum.com/t/rspec-1-1-99-10-rails-2-3-help-needed/162154)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 1\
**Last updated:** [March 6, 2009, 11:19am UTC](https://www.ruby-forum.com/t/rspec-1-1-99-10-rails-2-3-help-needed/162154 "2009-03-06T11:19:17Z")

</div>

I checked first and found no conversation that matched my problem so here it is: I’m trying to get rspec going on ruby 1.9.1 / rails 2.3.0 - here’s my current gem list: \*\*\* LOCAL GEMS \*\*\* actionmailer (2.3.0) actio…

---

## [Be\_valid (validates\_format\_of ..., :on =\> :create)](https://www.ruby-forum.com/t/be-valid-validates-format-of-on-create/161744)

<div class="topic-metadata">

**Author:** [@mawiniarski](https://www.ruby-forum.com/u/mawiniarski)\
**Replies:** 7\
**Last updated:** [March 6, 2009, 9:50am UTC](https://www.ruby-forum.com/t/be-valid-validates-format-of-on-create/161744 "2009-03-06T09:50:30Z")

</div>

Greetings, How to write Example which will check if model’s variable’s format is valid using :on =\> :create, like this: class User \< ActiveRecord::Base … validates\_format\_of :email, :with =\> /…/, :on =\> :creat…

---

## [Can I construct the controller myself in a controller spec?](https://www.ruby-forum.com/t/can-i-construct-the-controller-myself-in-a-controller-spec/162040)

<div class="topic-metadata">

**Author:** [@Perryn\_F](https://www.ruby-forum.com/u/Perryn_F)\
**Replies:** 8\
**Last updated:** [March 6, 2009, 9:40am UTC](https://www.ruby-forum.com/t/can-i-construct-the-controller-myself-in-a-controller-spec/162040 "2009-03-06T09:40:29Z")

</div>

Hi I am experimenting with Constructor based dependency injection for rails controllers. So I have something like this class LoginSessionsController \< ApplicationController def initialize(authenticator = TheRealAut…

---

## [Story / Redirection to static html within public](https://www.ruby-forum.com/t/story-redirection-to-static-html-within-public/138382)

<div class="topic-metadata">

**Author:** [@joesniff](https://www.ruby-forum.com/u/joesniff)\
**Replies:** 2\
**Last updated:** [March 6, 2009, 7:52am UTC](https://www.ruby-forum.com/t/story-redirection-to-static-html-within-public/138382 "2009-03-06T07:52:11Z")

</div>

With a rails application I’m trying to access the public/ folder from within a rspec story. I have a controller which redirects to: /public/static\_html\_page.html I have a story written using webat. This story uses t…

---

## [\--options file quirky with --drb](https://www.ruby-forum.com/t/options-file-quirky-with-drb/162106)

<div class="topic-metadata">

**Author:** [@Higgaion](https://www.ruby-forum.com/u/Higgaion)\
**Replies:** 4\
**Last updated:** [March 5, 2009, 11:22pm UTC](https://www.ruby-forum.com/t/options-file-quirky-with-drb/162106 "2009-03-05T23:22:41Z")

</div>

putting --drb in my spec.opts file has some unexpected results. $ spec --drb --colour --format specdoc --loadby mtime --reverse -G spec/spec.opts $ spec spec/models/a\_model\_spec.rb -O spec/spec.opts $ it just return…

---

## [OT: AR Default Values](https://www.ruby-forum.com/t/ot-ar-default-values/162000)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [March 5, 2009, 6:36pm UTC](https://www.ruby-forum.com/t/ot-ar-default-values/162000 "2009-03-05T18:36:42Z")

</div>

This is sort of off topic but it arose from a cucumber test failure and I am unsure how to address the underlying issue. I spent yesterday tracking down an obscure error that was exposed by a new cucumber test. It tu…

---

## [Errors in controller specs when running by rake](https://www.ruby-forum.com/t/errors-in-controller-specs-when-running-by-rake/162103)

<div class="topic-metadata">

**Author:** [@codinggurl](https://www.ruby-forum.com/u/codinggurl)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 6:36pm UTC](https://www.ruby-forum.com/t/errors-in-controller-specs-when-running-by-rake/162103 "2009-03-05T18:36:07Z")

</div>

Hi, I’m working on Windows Vista and I’ve installed the plugins rspec and rspec-rails V1.1.12. If I run the controller specs directly by ruby, they are all ok: C:\\InstantRails-2.0-win\\rails\_apps\\myapplication\>ruby …

---

## [Cucumber for large projects](https://www.ruby-forum.com/t/cucumber-for-large-projects/161745)

<div class="topic-metadata">

**Author:** [@Tom\_ten\_Thij](https://www.ruby-forum.com/u/Tom_ten_Thij)\
**Replies:** 11\
**Last updated:** [March 4, 2009, 8:33pm UTC](https://www.ruby-forum.com/t/cucumber-for-large-projects/161745 "2009-03-04T20:33:00Z")

</div>

We will be using Cucumber for a fairly large project. Are there any areas that cucumber is lacking when there are many scenarios? I believe the best candidate for showing our client the scenario results is the html ou…

---

## [Writing specs for AMQP clients](https://www.ruby-forum.com/t/writing-specs-for-amqp-clients/161972)

<div class="topic-metadata">

**Author:** [@Bira](https://www.ruby-forum.com/u/Bira)\
**Replies:** 4\
**Last updated:** [March 4, 2009, 7:08pm UTC](https://www.ruby-forum.com/t/writing-specs-for-amqp-clients/161972 "2009-03-04T19:08:55Z")

</div>

Hello! I’ve been lurking in the list a while, and now I would like to ask you a somewhat “noobish” question… This is the first time I’ve run across this particular problem, so I’m not sure what to do. I’m sure this i…

---

## [Testing my scripts?](https://www.ruby-forum.com/t/testing-my-scripts/161955)

<div class="topic-metadata">

**Author:** [@hoshbad](https://www.ruby-forum.com/u/hoshbad)\
**Replies:** 2\
**Last updated:** [March 4, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/testing-my-scripts/161955 "2009-03-04T18:46:23Z")

</div>

Hello RSpec mailing list, I have a question which I’m sure someone here has a “duh!” answer to. :stuck\_out\_tongue: A lot of the Ruby programming I do is around installing servers and automating various tasks. The patt…

---

## [\[cucumber\] Cucumber and CI](https://www.ruby-forum.com/t/cucumber-cucumber-and-ci/161048)

<div class="topic-metadata">

**Author:** [@hayafirst](https://www.ruby-forum.com/u/hayafirst)\
**Replies:** 51\
**Last updated:** [March 4, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/cucumber-cucumber-and-ci/161048 "2009-03-04T18:25:16Z")

</div>

The rhythm for wrking with cucumber advertised by http://cukes.info/ is to write tests that fails first, then code that fixes it. Now my question is, what is the implication when combine this with Continuous Integrat…

---

## [Sinitra 0.9.1 Webrat 0.4.2 Cuc problem](https://www.ruby-forum.com/t/sinitra-0-9-1-webrat-0-4-2-cuc-problem/161953)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 5\
**Last updated:** [March 4, 2009, 3:57pm UTC](https://www.ruby-forum.com/t/sinitra-0-9-1-webrat-0-4-2-cuc-problem/161953 "2009-03-04T15:57:28Z")

</div>

Have created sample sinatra cucumber app as suggested on wiki. Tried both env.rb configurations from there and aslaks git repo. With this combination of gems I get the following error doing basic cuc tests When I vi…

---

## [Sinitra and Cucumber](https://www.ruby-forum.com/t/sinitra-and-cucumber/160421)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 9\
**Last updated:** [March 4, 2009, 3:38pm UTC](https://www.ruby-forum.com/t/sinitra-and-cucumber/160421 "2009-03-04T15:38:36Z")

</div>

Hi all, Anyone using cucumber with sinitra (current). Wondering if I need to use Aslaks sinatra/webrat forks. Also if anyone has a sample app :slight\_smile: All best Andrew

---

## [Cucumber - Performance](https://www.ruby-forum.com/t/cucumber-performance/157097)

<div class="topic-metadata">

**Author:** [@trptcolin](https://www.ruby-forum.com/u/trptcolin)\
**Replies:** 5\
**Last updated:** [March 4, 2009, 11:40am UTC](https://www.ruby-forum.com/t/cucumber-performance/157097 "2009-03-04T11:40:36Z")

</div>

Hi, Small question on performance. I’ve just run the CS example provided with Cucumber and it took about 45-50 seconds before the first output appeared in the console, but once this first output had appeared the test…

---

## [Gherkin syntax notes (WIP)](https://www.ruby-forum.com/t/gherkin-syntax-notes-wip/161919)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 0\
**Last updated:** [March 3, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/gherkin-syntax-notes-wip/161919 "2009-03-03T20:59:06Z")

</div>

I made a start on some Gherkin syntax notes: http://wiki.github.com/aslakhellesoy/cucumber/gherkin Please look them over, fix errors, and/or send me a note about things I’ve missed or gotten wrong… -r http://www.cfc…

---

## [\[rails\] An authorization question](https://www.ruby-forum.com/t/rails-an-authorization-question/161668)

<div class="topic-metadata">

**Author:** [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Replies:** 32\
**Last updated:** [March 3, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/rails-an-authorization-question/161668 "2009-03-03T19:19:20Z")

</div>

I’ve been going back over some legacy code, backfilling tests, and I’m encountering something that is causing no small amount of pain. This is in a mature Rails app, that’s lived and migrated from 1.1 through to 2.1…

---

## [Changes in specs for routes in rspec 1.1.99.x](https://www.ruby-forum.com/t/changes-in-specs-for-routes-in-rspec-1-1-99-x/161776)

<div class="topic-metadata">

**Author:** [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Replies:** 2\
**Last updated:** [March 3, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/changes-in-specs-for-routes-in-rspec-1-1-99-x/161776 "2009-03-03T15:48:18Z")

</div>

Trying the next release of rspec, I have had to make changes in the existing specs for routing. I have written an script with sed that makes this automatically (two files) spec/upgrade.sed /route\_for/s/id =\> 1/id =\> …

---

## [Cucumber and selenium grid](https://www.ruby-forum.com/t/cucumber-and-selenium-grid/161621)

<div class="topic-metadata">

**Author:** [@guilherme\_c](https://www.ruby-forum.com/u/guilherme_c)\
**Replies:** 2\
**Last updated:** [March 3, 2009, 2:35pm UTC](https://www.ruby-forum.com/t/cucumber-and-selenium-grid/161621 "2009-03-03T14:35:14Z")

</div>

Hi, Does anybody know how to integrate cucumber features with selenium grid? Actually, what is needed is to run cucumber features in parallel so that using selenium grid helps cut down on the total time it takes to ru…

[Previous page](https://www.ruby-forum.com/c/testing/rspec/25.md?page=65)

[Next page](https://www.ruby-forum.com/c/testing/rspec/25.md?page=67)
