# RSpec

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

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

---

## [Broken rake tasks](https://www.ruby-forum.com/t/broken-rake-tasks/154838)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 3\
**Last updated:** [December 19, 2008, 2:14pm UTC](https://www.ruby-forum.com/t/broken-rake-tasks/154838 "2008-12-19T14:14:15Z")

</div>

I’ve got a couple of rake tasks that seem to have broken with rspec 1.1.11. http://pastie.org/330719 The trace I’m getting is /Library/Ruby/Gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:229:in files\_to\_load'…

---

## [\[Cucumber\] Autotest and multiple scenarios](https://www.ruby-forum.com/t/cucumber-autotest-and-multiple-scenarios/155890)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 1\
**Last updated:** [December 19, 2008, 2:22am UTC](https://www.ruby-forum.com/t/cucumber-autotest-and-multiple-scenarios/155890 "2008-12-19T02:22:42Z")

</div>

Hi Guys, Using AUTOFEATURE=true autospec and have a feature with multiple scenarios. When we save the feature or steps file AUTOTEST seems to only run the last scenario. Is this a known issue or are we doing somethin…

---

## [Fixtures and associations](https://www.ruby-forum.com/t/fixtures-and-associations/155866)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 19\
**Last updated:** [December 18, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/fixtures-and-associations/155866 "2008-12-18T17:37:33Z")

</div>

Hello… I want ask for a help in error that don’t understand. I have properties model and tenants model. Tenant belongs to Property and Property has many Tenants… I try this test association but allways get “not valid…

---

## [Testing email w/ cucumber](https://www.ruby-forum.com/t/testing-email-w-cucumber/155906)

<div class="topic-metadata">

**Author:** [@mischa](https://www.ruby-forum.com/u/mischa)\
**Replies:** 2\
**Last updated:** [December 18, 2008, 6:33am UTC](https://www.ruby-forum.com/t/testing-email-w-cucumber/155906 "2008-12-18T06:33:35Z")

</div>

Dear all, Wanted to let people know that Ben M. has an excellent little plugin here: GitHub - email-spec/email-spec: Collection of RSpec/MiniTest matchers and Cucumber steps for testing email in a ruby app using Actio…

---

## [\[Cucumber\] a few clarifications please](https://www.ruby-forum.com/t/cucumber-a-few-clarifications-please/155879)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 10\
**Last updated:** [December 18, 2008, 3:53am UTC](https://www.ruby-forum.com/t/cucumber-a-few-clarifications-please/155879 "2008-12-18T03:53:23Z")

</div>

Hi Guys, Things are working great with Cucumber and am getting better at expressing requirements as behaviors. Kudos! I seek a couple of points of clarification, or confirmation, if someone has a minute or two… FWIW…

---

## [Rails 2.3](https://www.ruby-forum.com/t/rails-2-3/155837)

<div class="topic-metadata">

**Author:** [@mischa](https://www.ruby-forum.com/u/mischa)\
**Replies:** 2\
**Last updated:** [December 18, 2008, 12:32am UTC](https://www.ruby-forum.com/t/rails-2-3/155837 "2008-12-18T00:32:38Z")

</div>

Wanted to point out to anyone having problems that rspec-rails 1.1.11.1 works with rails 2.3, while rspec 1.1.11 does not appear to. Also, to get rspec 1.1.11.1 to build I had to remove UPDATE from the manifest. M

---

## [Wanna make the Cucumber Logo?](https://www.ruby-forum.com/t/wanna-make-the-cucumber-logo/155203)

<div class="topic-metadata">

**Author:** [@aslakhellesoy](https://www.ruby-forum.com/u/aslakhellesoy)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/wanna-make-the-cucumber-logo/155203 "2008-12-17T13:25:46Z")

</div>

Check this out: Aslak

---

## [Warnings](https://www.ruby-forum.com/t/warnings/155797)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 2\
**Last updated:** [December 17, 2008, 12:46am UTC](https://www.ruby-forum.com/t/warnings/155797 "2008-12-17T00:46:04Z")

</div>

So I was running my specs with -w the other day, and noticed a lot of warnings being produced. Some of these appear to be coming from RSpec internals, which is an issue in its own right but not the subject of this em…

---

## [\[Cucumber\] factor out non-user steps](https://www.ruby-forum.com/t/cucumber-factor-out-non-user-steps/155761)

<div class="topic-metadata">

**Author:** [@aidy\_lewis](https://www.ruby-forum.com/u/aidy_lewis)\
**Replies:** 3\
**Last updated:** [December 16, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/cucumber-factor-out-non-user-steps/155761 "2008-12-16T22:02:51Z")

</div>

Hi, I have a step that has been defined by the user Given /a logged in user/ {} Now in that step I have my own step (not defined by the business) of Given “all projects have been deleted” The second step needs to b…

---

## [Cucumber fat client](https://www.ruby-forum.com/t/cucumber-fat-client/155202)

<div class="topic-metadata">

**Author:** [@aslakhellesoy](https://www.ruby-forum.com/u/aslakhellesoy)\
**Replies:** 18\
**Last updated:** [December 16, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/cucumber-fat-client/155202 "2008-12-16T16:15:46Z")

</div>

Hi folks, Cucumber has become popular a lot quicker than I had anticipated. Still, with its plain text nature it is still limited to programmers (in most teams). I want to close the gap between customers/product owne…

---

## [Where to put Cucumber Utilities?](https://www.ruby-forum.com/t/where-to-put-cucumber-utilities/155666)

<div class="topic-metadata">

**Author:** [@aidy\_lewis](https://www.ruby-forum.com/u/aidy_lewis)\
**Replies:** 1\
**Last updated:** [December 15, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/where-to-put-cucumber-utilities/155666 "2008-12-15T12:39:38Z")

</div>

Hi, I use Watir\\Firewatir with Cucumber. I previously used a framework that object modelled the A-U-T; so each HTML page would be a class and each object a method: this improved readability. We came to the conclusion…

---

## [Cucumber: Fix for Textmate syntax highlighting](https://www.ruby-forum.com/t/cucumber-fix-for-textmate-syntax-highlighting/153301)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 2\
**Last updated:** [December 15, 2008, 3:46am UTC](https://www.ruby-forum.com/t/cucumber-fix-for-textmate-syntax-highlighting/153301 "2008-12-15T03:46:56Z")

</div>

It’s been bugging me for a while that a lot of the regular expressions in my step matchers look ugly in TextMate because it doesn’t recognise them. I patched the Ruby tmbundle with a fix. If this bugs you too, you ca…

---

## [Testing rails mailers](https://www.ruby-forum.com/t/testing-rails-mailers/155401)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 2\
**Last updated:** [December 14, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/testing-rails-mailers/155401 "2008-12-14T14:41:47Z")

</div>

Hi Guys I am trying to spec some rails mailers. The only info I found was this post by Dmytro Shteflyuk. I am hoping there is somewhat more on the topic - could someone point me towards a resource where I can find …

---

## [Cucumber features HTML output bug with more than 100 steps](https://www.ruby-forum.com/t/cucumber-features-html-output-bug-with-more-than-100-steps/155525)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 8\
**Last updated:** [December 13, 2008, 1:37am UTC](https://www.ruby-forum.com/t/cucumber-features-html-output-bug-with-more-than-100-steps/155525 "2008-12-13T01:37:19Z")

</div>

I’m having the following problem: With the format as html, the output of cucumber stops coloring successful steps green after step #100. This last line in the HTML is: \<script type="text/javascript"\>stepPassed(100)\</…

---

## [Nosy controller specs](https://www.ruby-forum.com/t/nosy-controller-specs/155470)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 13\
**Last updated:** [December 13, 2008, 12:23am UTC](https://www.ruby-forum.com/t/nosy-controller-specs/155470 "2008-12-13T00:23:33Z")

</div>

Looking at generated controller specs we tend to get something like describe PostsController do describe “handling GET /posts” do before(:each) do @post = mock\_model(Post) Post.stub!(:find).and\_return(\[@post\]) end…

---

## [Autospec does not work w/ cucumber features?](https://www.ruby-forum.com/t/autospec-does-not-work-w-cucumber-features/155023)

<div class="topic-metadata">

**Author:** [@Kero\_van\_Gelder](https://www.ruby-forum.com/u/Kero_van_Gelder)\
**Replies:** 4\
**Last updated:** [December 12, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/autospec-does-not-work-w-cucumber-features/155023 "2008-12-12T23:11:28Z")

</div>

Hi! And now for the second part of the subject of my previous mails :slight\_smile: $ cat cucumber.yml default: . autotest: -v . autotest-all: -v -f progress . $ cucumber -i . -f progress PP Pending Scenarios: e…

---

## [Problem when testing controllers](https://www.ruby-forum.com/t/problem-when-testing-controllers/155520)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 2\
**Last updated:** [December 12, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/problem-when-testing-controllers/155520 "2008-12-12T21:32:55Z")

</div>

I’m having troubles to test methods on controllers, specially this method: def update @property = @user.properties.find(params\[:id\]) if params\[:property\]\[:owner\_id\].blank? @owner = Owner.create\_from\_user(@user) @…

---

## [Rspec\_rails and spec\_server](https://www.ruby-forum.com/t/rspec-rails-and-spec-server/155462)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 1\
**Last updated:** [December 12, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/rspec-rails-and-spec-server/155462 "2008-12-12T19:31:25Z")

</div>

Just in case anyone can just short-circuit this, I upgraded to Rails 2.2.2 and RSpec-rails 1.1.11, and now when I run ‘spec --drb foo.spec’ I get an error because spec\_server is trying to call ActiveRecord::Base.act…

---

## [Rspecing rjs - form.reset('form')](https://www.ruby-forum.com/t/rspecing-rjs-form-reset-form/155372)

<div class="topic-metadata">

**Author:** [@cautaro](https://www.ruby-forum.com/u/cautaro)\
**Replies:** 3\
**Last updated:** [December 12, 2008, 8:08am UTC](https://www.ruby-forum.com/t/rspecing-rjs-form-reset-form/155372 "2008-12-12T08:08:46Z")

</div>

Hello,

---

## [Glimmer's Got BDD through RSpec and SWTBot](https://www.ruby-forum.com/t/glimmers-got-bdd-through-rspec-and-swtbot/155423)

<div class="topic-metadata">

**Author:** [@amcniece](https://www.ruby-forum.com/u/amcniece)\
**Replies:** 3\
**Last updated:** [December 11, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/glimmers-got-bdd-through-rspec-and-swtbot/155423 "2008-12-11T21:19:10Z")

</div>

Just wanted to report that I successfully got a Glimmer desktop application tested through RSpec Cucumber Story Runner with the help of SWTBot. Check out my report about it here: Glimmer’s Got BDD through RSpec and …

---

## [Test for a gem/plugin?](https://www.ruby-forum.com/t/test-for-a-gem-plugin/155241)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 11\
**Last updated:** [December 11, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/test-for-a-gem-plugin/155241 "2008-12-11T21:12:17Z")

</div>

I have decided that for now I am going to use the authlogic gem to provide authentication for the project I am creating. The question arises, since authentication is a user feature request and since it is to be satis…

---

## [Disabling rspec when using autotest](https://www.ruby-forum.com/t/disabling-rspec-when-using-autotest/155413)

<div class="topic-metadata">

**Author:** [@jamied](https://www.ruby-forum.com/u/jamied)\
**Replies:** 1\
**Last updated:** [December 11, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/disabling-rspec-when-using-autotest/155413 "2008-12-11T17:45:06Z")

</div>

Hi, I’m trying to get autotest working with an existing rails project. When I run the autotest command in the rails root I get the following error: loading autotest/rails\_rspec Autotest style autotest/rails\_rspec doe…

---

## [Oddness with fieldnames containing an underscore](https://www.ruby-forum.com/t/oddness-with-fieldnames-containing-an-underscore/155358)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [December 11, 2008, 5:36am UTC](https://www.ruby-forum.com/t/oddness-with-fieldnames-containing-an-underscore/155358 "2008-12-11T05:36:12Z")

</div>

Hi all, I’m not sure if this is a cucumber or webrat thing given that I only starting tinkering with both last night for the first time (testing newb as well), but I’ve come across an oddity when trying to write a sc…

---

## [Stories, permissions, authorization rules etc](https://www.ruby-forum.com/t/stories-permissions-authorization-rules-etc/155188)

<div class="topic-metadata">

**Author:** [@Alberto\_P](https://www.ruby-forum.com/u/Alberto_P)\
**Replies:** 3\
**Last updated:** [December 11, 2008, 5:32am UTC](https://www.ruby-forum.com/t/stories-permissions-authorization-rules-etc/155188 "2008-12-11T05:32:42Z")

</div>

Hi, my team and i have come to the point where we have defined a whole bunch of stories for an application. Almost all of the actions (besides login, etc.) should not be accesible if not logged in. Almost all of the…

---

## [Stepping across features](https://www.ruby-forum.com/t/stepping-across-features/154676)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 18\
**Last updated:** [December 10, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/stepping-across-features/154676 "2008-12-10T21:46:58Z")

</div>

I am perplexed by a situation that I am creating for myself, probably out of ignorance. I have two models connected through a join table which itself contains information related to the join. I am testing the creati…

---

## [Rspec and RJS - form.reset](https://www.ruby-forum.com/t/rspec-and-rjs-form-reset/155325)

<div class="topic-metadata">

**Author:** [@cautaro](https://www.ruby-forum.com/u/cautaro)\
**Replies:** 0\
**Last updated:** [December 10, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/rspec-and-rjs-form-reset/155325 "2008-12-10T16:30:29Z")

</div>

Hello, I couldn’t find much info on this. How do you rspec this: page.form.reset(“tag\_form”) I looked in the have\_rjs source code and I can’t find anything on form reset. Thanks,

---

## [Assigns variable maintaining state across request?](https://www.ruby-forum.com/t/assigns-variable-maintaining-state-across-request/155299)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 1\
**Last updated:** [December 10, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/assigns-variable-maintaining-state-across-request/155299 "2008-12-10T14:06:22Z")

</div>

Hi I found that if I set assigns\[:variables\] in a spec, the value is maintained in subsequent specs. Example rails helper method: def return\_at\_variable @variable end Specs: #this passes obviously it ‘should r…

---

## [A custom progress bar formatter](https://www.ruby-forum.com/t/a-custom-progress-bar-formatter/155267)

<div class="topic-metadata">

**Author:** [@nicholas\_aSevans](https://www.ruby-forum.com/u/nicholas_aSevans)\
**Replies:** 3\
**Last updated:** [December 10, 2008, 2:29am UTC](https://www.ruby-forum.com/t/a-custom-progress-bar-formatter/155267 "2008-12-10T02:29:20Z")

</div>

I’ve always been a little bit bemused by the default ruby test/unit and rspec output. Basically, what I want is a progress bar and that any errors and warnings be displayed immediately. I also want warnings to be pri…

---

## [Testing call to super in rails helper](https://www.ruby-forum.com/t/testing-call-to-super-in-rails-helper/155209)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 2\
**Last updated:** [December 9, 2008, 11:20pm UTC](https://www.ruby-forum.com/t/testing-call-to-super-in-rails-helper/155209 "2008-12-09T23:20:19Z")

</div>

Hi I have the following code: def will\_paginate(items, options = {}) options = options.merge(:container =\> true, :class =\> ‘paging’) super(items, options) end I am curious about how to test that the call to super i…

---

## [Where to start after writing feature](https://www.ruby-forum.com/t/where-to-start-after-writing-feature/154990)

<div class="topic-metadata">

**Author:** [@srveit](https://www.ruby-forum.com/u/srveit)\
**Replies:** 11\
**Last updated:** [December 8, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/where-to-start-after-writing-feature/154990 "2008-12-08T22:12:06Z")

</div>

I am trying to develop code from the feature on down. So I created a brand new rails app. It has no models yet. I wrote a feature: Feature: Add tasks In order to track website improvements a user wants to add tasks …

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

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