# RSpec

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

[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:** 75

---

## [\[Cucumber\] - default rake task](https://www.ruby-forum.com/t/cucumber-default-rake-task/157617)

<div class="topic-metadata">

**Author:** [@aidy\_lewis](https://www.ruby-forum.com/u/aidy_lewis)\
**Replies:** 3\
**Last updated:** [January 13, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/cucumber-default-rake-task/157617 "2009-01-13T20:23:26Z")

</div>

Hi, I have a Rake problem. I would like the default task to run after :features. Curently it doesn’t when :features fails. Could you please help? require 'cucumber/rake/task' def send\_dcs\_email\_report(path\_to\_story\_…

---

## [Cucumber newbie gets Webrat::Se ssion (LoadError)](https://www.ruby-forum.com/t/cucumber-newbie-gets-webrat-se-ssion-loaderror/157610)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 2\
**Last updated:** [January 13, 2009, 6:36pm UTC](https://www.ruby-forum.com/t/cucumber-newbie-gets-webrat-se-ssion-loaderror/157610 "2009-01-13T18:36:46Z")

</div>

Just trying to get cucumber/webrat going and so after following the installation process here http://wiki.github.com/aslakhellesoy/cucumber/ruby-on-rails i wrote a quick feature and when I rake features, I get the fol…

---

## [Persisting Logins and Sessions across scenarios](https://www.ruby-forum.com/t/persisting-logins-and-sessions-across-scenarios/157527)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 7\
**Last updated:** [January 13, 2009, 2:31am UTC](https://www.ruby-forum.com/t/persisting-logins-and-sessions-across-scenarios/157527 "2009-01-13T02:31:41Z")

</div>

I have an authentication filter on my application controller. I have the following feature statements: Scenario: I should be logged in to do any of this Given we have a user named “myuser” And the user named “myuser”…

---

## [Who is using NullDB?](https://www.ruby-forum.com/t/who-is-using-nulldb/157549)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 2\
**Last updated:** [January 13, 2009, 2:12am UTC](https://www.ruby-forum.com/t/who-is-using-nulldb/157549 "2009-01-13T02:12:58Z")

</div>

I gather from some recent posts that some people are actually using NullDB in their projects. As the creator of NullDB, I’m pleased and a little surprised to hear this. Since NullDB is has received exactly zero atte…

---

## [NullDb makes rake spec take (much) longer](https://www.ruby-forum.com/t/nulldb-makes-rake-spec-take-much-longer/157521)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 3\
**Last updated:** [January 12, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/nulldb-makes-rake-spec-take-much-longer/157521 "2009-01-12T22:19:14Z")

</div>

Hi all, We did a spike last week to de-couple our view and controller tests from the database, using NullDb. It didn’t go too well. I realise that this plugin isn’t part of RSpec, but I thought others on this list mi…

---

## [Why can not a BigDecimal be compared to a Float via "==". How should I handle this?](https://www.ruby-forum.com/t/why-can-not-a-bigdecimal-be-compared-to-a-float-via-how-should-i-handle-this/157434)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 9\
**Last updated:** [January 11, 2009, 11:27pm UTC](https://www.ruby-forum.com/t/why-can-not-a-bigdecimal-be-compared-to-a-float-via-how-should-i-handle-this/157434 "2009-01-11T23:27:43Z")

</div>

Hi, Any suggestions on how to write an rspec expectation for equality when you get a BigDecimal back. I see that “big\_decimal\_variable.should == 123.23” doesn’t work as the ruby BigDecimal comparison (via ==) to th…

---

## [Maybe I 'get it' after all](https://www.ruby-forum.com/t/maybe-i-get-it-after-all/157451)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [January 11, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/maybe-i-get-it-after-all/157451 "2009-01-11T15:31:19Z")

</div>

I hope I’m not the only one in the world who posts to a discussion list only to (maybe) get the answer to a question moments after hitting posting. Sigh. Looking again, in the cucumber wiki page “Running Features”, I …

---

## [Is the Fit Table documentation correct?](https://www.ruby-forum.com/t/is-the-fit-table-documentation-correct/157415)

<div class="topic-metadata">

**Author:** [@markmt](https://www.ruby-forum.com/u/markmt)\
**Replies:** 3\
**Last updated:** [January 11, 2009, 3:30pm UTC](https://www.ruby-forum.com/t/is-the-fit-table-documentation-correct/157415 "2009-01-11T15:30:44Z")

</div>

I’ve been looking at the authentication feature example contained in merb\_cucumber and not having used features with tabulated input before I had to go and look for an explanation of the syntax. However when I looked …

---

## [Is there a problem with webrat?](https://www.ruby-forum.com/t/is-there-a-problem-with-webrat/157340)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [January 9, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/is-there-a-problem-with-webrat/157340 "2009-01-09T17:34:06Z")

</div>

webrat (0.3.4) I have this in the view: Just An Entity 000001 Show Entity Edit Entity Destroy Entity This Is a Bare Entity \<\\div\> I have this in my test: my\_entity = …

---

## [Examples not getting rolled back](https://www.ruby-forum.com/t/examples-not-getting-rolled-back/157119)

<div class="topic-metadata">

**Author:** [@Tero\_T](https://www.ruby-forum.com/u/Tero_T)\
**Replies:** 9\
**Last updated:** [January 9, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/examples-not-getting-rolled-back/157119 "2009-01-09T15:11:29Z")

</div>

I assume there’s now something I’m totally missing here. I’m creating stuff in examples, just plain Foo.create, and the results aren’t getting rolled back. I’m keep getting the following kind of pattern in my logs ……

---

## [Any eta on the rspec book?](https://www.ruby-forum.com/t/any-eta-on-the-rspec-book/157252)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 3\
**Last updated:** [January 8, 2009, 11:46pm UTC](https://www.ruby-forum.com/t/any-eta-on-the-rspec-book/157252 "2009-01-08T23:46:10Z")

</div>

Subject says it all… Thanks in advance, T

---

## [Cucumber, finding a row in a table](https://www.ruby-forum.com/t/cucumber-finding-a-row-in-a-table/156967)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 5\
**Last updated:** [January 8, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/cucumber-finding-a-row-in-a-table/156967 "2009-01-08T20:55:25Z")

</div>

I generate the following html on the page in question Just An Entity CORP 000001 Show Entity Edit Entity Destroy Entity I have this step definition: When /I delete the “(.\*)” entit…

---

## [Fixing "expected success? to return true, got false"](https://www.ruby-forum.com/t/fixing-expected-success-to-return-true-got-false/157072)

<div class="topic-metadata">

**Author:** [@mroths](https://www.ruby-forum.com/u/mroths)\
**Replies:** 4\
**Last updated:** [January 7, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/fixing-expected-success-to-return-true-got-false/157072 "2009-01-07T19:18:13Z")

</div>

I am trying to get the following test to pass, and get this error. Since I’m only on day 4 of rspec, I’m sure I’m missing something simple. Any ideas? rake spec ‘PatientsController GET ‘new’ should be successful’ FA…

---

## [Help with controller spec?](https://www.ruby-forum.com/t/help-with-controller-spec/157033)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 7\
**Last updated:** [January 6, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/help-with-controller-spec/157033 "2009-01-06T20:12:07Z")

</div>

I’m stumped. How would I go about specing the “update\_sandbox” method? bids\_controller: def new @bid = Bid.new respond\_to do |wants| wants.html { redirect\_to job\_bids\_path(@job) } wants.js { update\_sandbo…

---

## [Rack app to browse specs](https://www.ruby-forum.com/t/rack-app-to-browse-specs/156876)

<div class="topic-metadata">

**Author:** [@Joaquin\_Rivera\_P](https://www.ruby-forum.com/u/Joaquin_Rivera_P)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 5:49pm UTC](https://www.ruby-forum.com/t/rack-app-to-browse-specs/156876 "2009-01-06T17:49:18Z")

</div>

hello there, Sometimes I find easier to browse my specs directly on the browser to have an overall idea of the logic. To do it I have put up a simple rack app to: browse the contents of /spec directory on rails roo…

---

## [Rspec Rails high overhead](https://www.ruby-forum.com/t/rspec-rails-high-overhead/156847)

<div class="topic-metadata">

**Author:** [@Reza\_Primardiansyah](https://www.ruby-forum.com/u/Reza_Primardiansyah)\
**Replies:** 9\
**Last updated:** [January 6, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/rspec-rails-high-overhead/156847 "2009-01-06T14:55:57Z")

</div>

Greetings, I found out that running RSpec on Rails takes too much overhead. It takes more than 16s per run although the specs only take less than 6s, like seen below. That means almost 11s overhead. I can’t find th…

---

## [Options:229 error](https://www.ruby-forum.com/t/options-229-error/156991)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 3\
**Last updated:** [January 6, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/options-229-error/156991 "2009-01-06T13:55:59Z")

</div>

Hi Guys I am really having incredible issues with this error ivor@TheLuggage:~/workspace/talkies$ rake db:migrate (in /home/ivor/workspace/talkies) /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:…

---

## [Cucumber speed tips](https://www.ruby-forum.com/t/cucumber-speed-tips/156425)

<div class="topic-metadata">

**Author:** [@mischa](https://www.ruby-forum.com/u/mischa)\
**Replies:** 9\
**Last updated:** [January 6, 2009, 7:31am UTC](https://www.ruby-forum.com/t/cucumber-speed-tips/156425 "2009-01-06T07:31:58Z")

</div>

As some of us have been using cucumber for quite a while now, I may not be the only one wishing his many steps ran a bit faster. Let’s try to put together a quick FAQ for people looking to speed up their steps. Her…

---

## [Voted for Cucumber logo yet?](https://www.ruby-forum.com/t/voted-for-cucumber-logo-yet/156898)

<div class="topic-metadata">

**Author:** [@aslakhellesoy](https://www.ruby-forum.com/u/aslakhellesoy)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 3:00am UTC](https://www.ruby-forum.com/t/voted-for-cucumber-logo-yet/156898 "2009-01-05T03:00:46Z")

</div>

If not - please do! http://cukes.info Announcing winner tomorrow. No rallying friends please. Just vote for the best one. Aslak

---

## [\[ANN\] RSpec-1.1.12 - RC1](https://www.ruby-forum.com/t/ann-rspec-1-1-12-rc1/156871)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 2\
**Last updated:** [January 5, 2009, 2:59am UTC](https://www.ruby-forum.com/t/ann-rspec-1-1-12-rc1/156871 "2009-01-05T02:59:00Z")

</div>

Hey all, I’m getting ready to do a 1.1.12 release of rspec and rspec-rails. Given the history of release-related compatibility problems, I offer you release candidate gems, which you can acquire thusly: \[sudo\] gem in…

---

## [Cucumber model expectations fail to find newly created users](https://www.ruby-forum.com/t/cucumber-model-expectations-fail-to-find-newly-created-users/156880)

<div class="topic-metadata">

**Author:** [@hubertlepicki](https://www.ruby-forum.com/u/hubertlepicki)\
**Replies:** 3\
**Last updated:** [January 4, 2009, 9:16pm UTC](https://www.ruby-forum.com/t/cucumber-model-expectations-fail-to-find-newly-created-users/156880 "2009-01-04T21:16:00Z")

</div>

Hi guys, I have strange problem with getting model expectations to work with Cucumber. My setup is that I use Cucumber + Webrat (Selenium backend). Story I test is registering user on site. Cucumber runs story perfect…

---

## [\[ANN\] Cucumber 0.1.14](https://www.ruby-forum.com/t/ann-cucumber-0-1-14/156878)

<div class="topic-metadata">

**Author:** [@aslakhellesoy](https://www.ruby-forum.com/u/aslakhellesoy)\
**Replies:** 1\
**Last updated:** [January 4, 2009, 8:00pm UTC](https://www.ruby-forum.com/t/ann-cucumber-0-1-14/156878 "2009-01-04T20:00:56Z")

</div>

Now with Ruby 1.9 support! Full changelog: http://github.com/aslakhellesoy/cucumber/tree/v0.1.14/History.txt The gem will be available in an hour or two. Aslak

---

## [Getting heckled by Heckle?](https://www.ruby-forum.com/t/getting-heckled-by-heckle/156807)

<div class="topic-metadata">

**Author:** [@hoshbad](https://www.ruby-forum.com/u/hoshbad)\
**Replies:** 2\
**Last updated:** [January 4, 2009, 7:01am UTC](https://www.ruby-forum.com/t/getting-heckled-by-heckle/156807 "2009-01-04T07:01:42Z")

</div>

Hello RSpec folks, I’m not sure if I’m doing something wrong with the Heckle integration in RSpec? I go to heckle my spec, and everything seems to start out okay. But then something weird happens: 3 mutations remain…

---

## [How to spec a controller method that involves an rjs redirect](https://www.ruby-forum.com/t/how-to-spec-a-controller-method-that-involves-an-rjs-redirect/156762)

<div class="topic-metadata">

**Author:** [@nasir](https://www.ruby-forum.com/u/nasir)\
**Replies:** 2\
**Last updated:** [January 4, 2009, 5:18am UTC](https://www.ruby-forum.com/t/how-to-spec-a-controller-method-that-involves-an-rjs-redirect/156762 "2009-01-04T05:18:06Z")

</div>

Hi everyone, What is the best way to spec a controller method that involves an rjs redirect? Something like this def index Â url\_to = @parent ? auction\_bids\_path(@parent)Â : auctions\_path Â render :update do |pag…

---

## [Newbie: need help to write the spec for helper](https://www.ruby-forum.com/t/newbie-need-help-to-write-the-spec-for-helper/156661)

<div class="topic-metadata">

**Author:** [@nasir](https://www.ruby-forum.com/u/nasir)\
**Replies:** 6\
**Last updated:** [January 3, 2009, 1:27pm UTC](https://www.ruby-forum.com/t/newbie-need-help-to-write-the-spec-for-helper/156661 "2009-01-03T13:27:42Z")

</div>

Hi, I am a rspec newbie, can anyone guide me on how to write a spec for the below helper. module MyHelper Â def test Â Â link\_to(‘MyLink’, resources\_path) if @categories || @sub\_categories Â end end @categories …

---

## [Cucumber namespace problem](https://www.ruby-forum.com/t/cucumber-namespace-problem/156777)

<div class="topic-metadata">

**Author:** [@epirsch](https://www.ruby-forum.com/u/epirsch)\
**Replies:** 7\
**Last updated:** [January 2, 2009, 9:11pm UTC](https://www.ruby-forum.com/t/cucumber-namespace-problem/156777 "2009-01-02T21:11:34Z")

</div>

Hi I am having an issue with Cucumber where I am writing in one files some steps where rspec matcher do not seem to be accessible. So I have a file with my steps written like this require ‘steputils’ Given "some st…

---

## [Testing Framework Survey](https://www.ruby-forum.com/t/testing-framework-survey/156782)

<div class="topic-metadata">

**Author:** [@wycats](https://www.ruby-forum.com/u/wycats)\
**Replies:** 0\
**Last updated:** [January 2, 2009, 8:56pm UTC](https://www.ruby-forum.com/t/testing-framework-survey/156782 "2009-01-02T20:56:52Z")

</div>

In the interest of collecting some demographic information on the Rails community, Matt (Aimonetti, Rails evangelist) put together a poll of testing framework usage. Please vote at Twtpoll. Thanks!

---

## [How to write specs for already written parts of an application?](https://www.ruby-forum.com/t/how-to-write-specs-for-already-written-parts-of-an-application/156774)

<div class="topic-metadata">

**Author:** [@waseem\_ahmad](https://www.ruby-forum.com/u/waseem_ahmad)\
**Replies:** 1\
**Last updated:** [January 2, 2009, 7:11pm UTC](https://www.ruby-forum.com/t/how-to-write-specs-for-already-written-parts-of-an-application/156774 "2009-01-02T19:11:35Z")

</div>

Hi, What should be my approach to write specs for the parts of an applications which are already written? How should I start writing tests for those models, controllers which were not generated using rspec\_controller…

---

## [\[ANN\] RSpactor 1.0.1](https://www.ruby-forum.com/t/ann-rspactor-1-0-1/156761)

<div class="topic-metadata">

**Author:** [@rubyphunk](https://www.ruby-forum.com/u/rubyphunk)\
**Replies:** 0\
**Last updated:** [January 2, 2009, 3:56pm UTC](https://www.ruby-forum.com/t/ann-rspactor-1-0-1/156761 "2009-01-02T15:56:29Z")

</div>

Hi all, I’m happy to announce the first public RSpactor release 1.0.1. RSpactor is an autotest/autospec like Mac OS X 10.5 gui application that takes care of your rspec examples. It watches for changes and runs thes…

---

## [MockExpectationError with restful-authentication](https://www.ruby-forum.com/t/mockexpectationerror-with-restful-authentication/156672)

<div class="topic-metadata">

**Author:** [@mroths](https://www.ruby-forum.com/u/mroths)\
**Replies:** 4\
**Last updated:** [January 2, 2009, 12:54pm UTC](https://www.ruby-forum.com/t/mockexpectationerror-with-restful-authentication/156672 "2009-01-02T12:54:37Z")

</div>

Hi there…this is my first time using rspec and rspec-rails. When I run rake spec, I get this type of error over and over…what does it mean, and how can I correct it? Thanks, Mark Spec::Mocks::MockExpectationErr…

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

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