# RSpec

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

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

---

## [Undefined method "full\_description" when trying to run "rake spec"](https://www.ruby-forum.com/t/undefined-method-full-description-when-trying-to-run-rake-spec/154551)

<div class="topic-metadata">

**Author:** [@mauricio](https://www.ruby-forum.com/u/mauricio)\
**Replies:** 1\
**Last updated:** [December 1, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/undefined-method-full-description-when-trying-to-run-rake-spec/154551 "2008-12-01T16:13:41Z")

</div>

Hello guys, I’m getting this weird error when trying to run the specs using “rake spec”: /home/mauricio/NetBeansProjects/talkies/vendor/rails/actionpack/lib/action\_controller/test\_process.rb:471:in method\_missing': u…

---

## [Remote Features Screencast](https://www.ruby-forum.com/t/remote-features-screencast/154448)

<div class="topic-metadata">

**Author:** [@mhennemeyer](https://www.ruby-forum.com/u/mhennemeyer)\
**Replies:** 0\
**Last updated:** [November 29, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/remote-features-screencast/154448 "2008-11-29T20:47:13Z")

</div>

Hi there, i have written a little Ruby P. called RemoteFeature (Itâ€™s more a Hack as of now). It lets you run Cucumber/RSpec Features that are defined in a 37Signals-Writeboard and updates the Writeboard automagica…

---

## [Restful Authentication and Cucumber](https://www.ruby-forum.com/t/restful-authentication-and-cucumber/154274)

<div class="topic-metadata">

**Author:** [@cautaro](https://www.ruby-forum.com/u/cautaro)\
**Replies:** 5\
**Last updated:** [November 28, 2008, 12:17pm UTC](https://www.ruby-forum.com/t/restful-authentication-and-cucumber/154274 "2008-11-28T12:17:23Z")

</div>

Hello, I am using Restful Authentication and I would like to login in Cucumber. I am having trouble keeping the user logged in. I tried finding a solution for this everywhere. Only source is this article: http://af…

---

## [Attributes method not working?](https://www.ruby-forum.com/t/attributes-method-not-working/154311)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [November 27, 2008, 9:30pm UTC](https://www.ruby-forum.com/t/attributes-method-not-working/154311 "2008-11-27T21:30:48Z")

</div>

rspec-users mailing list removed\_email\_address@domain.invalid http://rubyforge.org/mailman/listinfo/rspec-users

---

## [exactly(N).times incorrectly passing for N \< actual](https://www.ruby-forum.com/t/exactly-n-times-incorrectly-passing-for-n-actual/154288)

<div class="topic-metadata">

**Author:** [@Ashley\_M](https://www.ruby-forum.com/u/Ashley_M)\
**Replies:** 1\
**Last updated:** [November 27, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/exactly-n-times-incorrectly-passing-for-n-actual/154288 "2008-11-27T12:42:39Z")

</div>

Hi This spec: it "should cache the HTML" do @uri.should\_receive(:read).exactly(N).times 5.times { @low\_graphics\_page.story\_body } end passes incorrectly for all N \<= 4, and only fails for N \> 6…

---

## [Could one scenario depend on another in cucumber?](https://www.ruby-forum.com/t/could-one-scenario-depend-on-another-in-cucumber/154175)

<div class="topic-metadata">

**Author:** [@rubbit](https://www.ruby-forum.com/u/rubbit)\
**Replies:** 5\
**Last updated:** [November 27, 2008, 8:28am UTC](https://www.ruby-forum.com/t/could-one-scenario-depend-on-another-in-cucumber/154175 "2008-11-27T08:28:55Z")

</div>

I think it is a common test case you would meet. For example, you want to test a user registry scenario. You write: Scenario: User Registry When I dosth Then I dosth … And now business has some changes. Register sh…

---

## [Re: class \<\< self considered harmful... really?](https://www.ruby-forum.com/t/re-class-self-considered-harmful-really/154273)

<div class="topic-metadata">

**Author:** [@Aslak\_HellesSSSSy](https://www.ruby-forum.com/u/Aslak_HellesSSSSy)\
**Replies:** 0\
**Last updated:** [November 27, 2008, 7:19am UTC](https://www.ruby-forum.com/t/re-class-self-considered-harmful-really/154273 "2008-11-27T07:19:39Z")

</div>

When (if) this thread ends, let’s start a discussion about indentation conventions! kthxbye

---

## [Cucumber Problems with setup selenium/webrat + languages](https://www.ruby-forum.com/t/cucumber-problems-with-setup-selenium-webrat-languages/154104)

<div class="topic-metadata">

**Author:** [@Alberto\_P](https://www.ruby-forum.com/u/Alberto_P)\
**Replies:** 3\
**Last updated:** [November 27, 2008, 12:47am UTC](https://www.ruby-forum.com/t/cucumber-problems-with-setup-selenium-webrat-languages/154104 "2008-11-27T00:47:56Z")

</div>

Hi all, i’ve gotten started with cucumber thanks to Fernando and Raimond who gave a brilliant talk about cucumber at the Conferencia Rails in Madrid a few weeks ago. Congratulations again guys! Thanks also to Joseph …

---

## [Spec'ing via features](https://www.ruby-forum.com/t/specing-via-features/153843)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 57\
**Last updated:** [November 26, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/specing-via-features/153843 "2008-11-26T23:33:01Z")

</div>

As I work with Rails TestUnit tests I am reconsidering how to use cucumber features. It seems to me that it might be best to have a coherent view of how to arrange my test suites before I get much further into this. …

---

## [Autospec running over and over, without changes?](https://www.ruby-forum.com/t/autospec-running-over-and-over-without-changes/151654)

<div class="topic-metadata">

**Author:** [@scottbrisko](https://www.ruby-forum.com/u/scottbrisko)\
**Replies:** 3\
**Last updated:** [November 26, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/autospec-running-over-and-over-without-changes/151654 "2008-11-26T22:25:48Z")

</div>

Hi all; I have several Rails projects where RSpec is working correctly, and one in which it is not. Running autospec continuously reloads all files, running my tests over and over again, without making any changes. E…

---

## [ActiveRecord::RecordNotFound error Cucumber/Webrat](https://www.ruby-forum.com/t/activerecord-recordnotfound-error-cucumber-webrat/154203)

<div class="topic-metadata">

**Author:** [@cautaro](https://www.ruby-forum.com/u/cautaro)\
**Replies:** 3\
**Last updated:** [November 26, 2008, 6:18pm UTC](https://www.ruby-forum.com/t/activerecord-recordnotfound-error-cucumber-webrat/154203 "2008-11-26T18:18:15Z")

</div>

Hello, I am bit new to Cucumber and Webrat and I have one issue that I can’t seem to fix on my own. I would appreciate your help. I have a controller called places and a model called Place. I use the acts\_as\_tree pl…

---

## [Rake features vs. cucumber features](https://www.ruby-forum.com/t/rake-features-vs-cucumber-features/154224)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 6\
**Last updated:** [November 26, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/rake-features-vs-cucumber-features/154224 "2008-11-26T17:10:29Z")

</div>

What exactly is the difference between these two invocations, beside the fact that one is a rake task and one loads and runs the gem directly? I am getting a slew of errors when I run “# cucumber features” whereas “# …

---

## [Re: SOLVED Observer not calling inside a spec](https://www.ruby-forum.com/t/re-solved-observer-not-calling-inside-a-spec/154219)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 2\
**Last updated:** [November 26, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/re-solved-observer-not-calling-inside-a-spec/154219 "2008-11-26T15:06:50Z")

</div>

Hands up all the people in here who feel stupid Thanks. Problem was that I had an errant stub!(:notify) in a factory method. That factory method was only called on certain classes. Those classes were the ones fai…

---

## [Observer not calling inside a spec](https://www.ruby-forum.com/t/observer-not-calling-inside-a-spec/154199)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 7\
**Last updated:** [November 26, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/observer-not-calling-inside-a-spec/154199 "2008-11-26T12:45:27Z")

</div>

OK, I can’t figure this out. RSpec 1.1.8 RSpecRails 1.1.8 Rails 2.1.1 I have a model #app/models/person.rb class Person \< ActiveRecord::Base The model has a lot of code in it, but even deleting all the contents do…

---

## [Matcher to see if radio button is selected at page load](https://www.ruby-forum.com/t/matcher-to-see-if-radio-button-is-selected-at-page-load/154178)

<div class="topic-metadata">

**Author:** [@phylae](https://www.ruby-forum.com/u/phylae)\
**Replies:** 2\
**Last updated:** [November 26, 2008, 8:10am UTC](https://www.ruby-forum.com/t/matcher-to-see-if-radio-button-is-selected-at-page-load/154178 "2008-11-26T08:10:15Z")

</div>

Hi. I’m trying to write a matcher to make sure a radio button is selected when the page loads. I got this at the moment: When /^I leave “(.\*)” selected$/ do |label| field = field\_labeled label unless field.instance\_…

---

## [Rails associations](https://www.ruby-forum.com/t/rails-associations/154172)

<div class="topic-metadata">

**Author:** [@David\_Parker](https://www.ruby-forum.com/u/David_Parker)\
**Replies:** 4\
**Last updated:** [November 26, 2008, 4:46am UTC](https://www.ruby-forum.com/t/rails-associations/154172 "2008-11-26T04:46:57Z")

</div>

Hello! So I’m having some problems working out some probably really easy associations in Rails. I’ve Googled around and read some things on different Rails forums and blogs, but I just haven’t seen many solid exampl…

---

## [Rpec\_scaffold and nested resources](https://www.ruby-forum.com/t/rpec-scaffold-and-nested-resources/123586)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 2\
**Last updated:** [November 26, 2008, 2:12am UTC](https://www.ruby-forum.com/t/rpec-scaffold-and-nested-resources/123586 "2008-11-26T02:12:59Z")

</div>

I’ve got a love-hate relationship with script/generate rspec\_scaffold If you are using non-nested controllers/resources it’s great. I love the spec skeletons it generates. But I find myself doing this, where Y is and…

---

## [Q: object.id is deprecated. How to mock?](https://www.ruby-forum.com/t/q-object-id-is-deprecated-how-to-mock/154140)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 5\
**Last updated:** [November 25, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/q-object-id-is-deprecated-how-to-mock/154140 "2008-11-25T23:34:58Z")

</div>

In Rails, the primary key, by default ‘id’, is used all over the place. However, Ruby now deprecates the use of constructs like: @post = Post.find(:first) @post\_id = @post.id I buy the rationale, as the Object#id is …

---

## [Autospec broken - non-rails project](https://www.ruby-forum.com/t/autospec-broken-non-rails-project/154153)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 1\
**Last updated:** [November 25, 2008, 11:31pm UTC](https://www.ruby-forum.com/t/autospec-broken-non-rails-project/154153 "2008-11-25T23:31:27Z")

</div>

For some reason, autospec has stopped working on one of my pure ruby projects. I’m not sure whether or not this was before of after I updated to RSpec 1.1.11. Spec’s which run fine using the textmate rspec bundle’s r…

---

## [Spec rendering xml.erb suspectly doen't work](https://www.ruby-forum.com/t/spec-rendering-xml-erb-suspectly-doent-work/154124)

<div class="topic-metadata">

**Author:** [@Peter\_Ehrenberg](https://www.ruby-forum.com/u/Peter_Ehrenberg)\
**Replies:** 2\
**Last updated:** [November 25, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/spec-rendering-xml-erb-suspectly-doent-work/154124 "2008-11-25T17:50:28Z")

</div>

I have to spec an contoller action witch is (only) rendering an xml.erb template. The action looks like this: def index respond\_to do |format| format.xml end end The “index.xml.erb” template includes (for now) on…

---

## [Cucumber question - uninitialized constant creating object in model](https://www.ruby-forum.com/t/cucumber-question-uninitialized-constant-creating-object-in-model/154012)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 7\
**Last updated:** [November 25, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/cucumber-question-uninitialized-constant-creating-object-in-model/154012 "2008-11-25T17:37:32Z")

</div>

Sorry if this is a really basic question. Scanned the past several months archives, didn’t see it. When I am running “cucumber features” I get the error: “uninitialized constant Thing (NameError)” With step code bei…

---

## [Just trying out cucumber](https://www.ruby-forum.com/t/just-trying-out-cucumber/154013)

<div class="topic-metadata">

**Author:** [@codejoy](https://www.ruby-forum.com/u/codejoy)\
**Replies:** 10\
**Last updated:** [November 25, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/just-trying-out-cucumber/154013 "2008-11-25T15:44:32Z")

</div>

Hi Just giving cucumber a trial with a Rails application and was wanting some feedback on what I did for my project token that is a system generated value … Scenario: Register new project Given I am logged in And I…

---

## [Rakefile to automatically generate Cucumber tasks](https://www.ruby-forum.com/t/rakefile-to-automatically-generate-cucumber-tasks/154101)

<div class="topic-metadata">

**Author:** [@Ashley\_M](https://www.ruby-forum.com/u/Ashley_M)\
**Replies:** 0\
**Last updated:** [November 25, 2008, 11:25am UTC](https://www.ruby-forum.com/t/rakefile-to-automatically-generate-cucumber-tasks/154101 "2008-11-25T11:25:33Z")

</div>

Hi In case it’s of use to anyone: http://aviewfromafar.net/2008/11/25/automatically-generate-cucumber-rake-tasks Handy for me in my current situation (small number feature files, slow- running). Ashley – http://ww…

---

## [\[Cucumber\] single feature run produces duplicate features in HTMl report](https://www.ruby-forum.com/t/cucumber-single-feature-run-produces-duplicate-features-in-html-report/154025)

<div class="topic-metadata">

**Author:** [@aidy\_lewis](https://www.ruby-forum.com/u/aidy_lewis)\
**Replies:** 4\
**Last updated:** [November 25, 2008, 5:52am UTC](https://www.ruby-forum.com/t/cucumber-single-feature-run-produces-duplicate-features-in-html-report/154025 "2008-11-25T05:52:21Z")

</div>

Hi, I am running a number of features once, but for some reason, I am getting duplicate features in the HTML report. Has anyone else experienced this? Cucumber --version 0.1.8 Aidy

---

## [How to write advanced matchers](https://www.ruby-forum.com/t/how-to-write-advanced-matchers/153591)

<div class="topic-metadata">

**Author:** [@erik](https://www.ruby-forum.com/u/erik)\
**Replies:** 3\
**Last updated:** [November 25, 2008, 4:44am UTC](https://www.ruby-forum.com/t/how-to-write-advanced-matchers/153591 "2008-11-25T04:44:31Z")

</div>

Hi Folks! For any developers reading… thank you for RSpec… it’s wonderful! I’ve been trying my darndest to get into it, spec everything ahead of time, and it’s working out great. The one thing I really have a hard ti…

---

## [Cucumber Custom Logging](https://www.ruby-forum.com/t/cucumber-custom-logging/154043)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 8\
**Last updated:** [November 24, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/cucumber-custom-logging/154043 "2008-11-24T21:39:32Z")

</div>

Where and how do you put custom logger statements in cucumber? I understood (more or less) how to do this in rspec in the spec\_helper file but I do not know where to start with cucumber. I want to add a simple identi…

---

## [Calling a step from a step](https://www.ruby-forum.com/t/calling-a-step-from-a-step/154014)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 7\
**Last updated:** [November 24, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/calling-a-step-from-a-step/154014 "2008-11-24T19:35:08Z")

</div>

cucumber 0.1.9 I have this: When /obtain the party (.\*)/ do |n| n case when “common name” @party.entity\_name = “Anything will do” when “legal name” @party.entity\_legal\_name = “Something a Bit Longer I SHOULD think…

---

## [Cucumber: Group Given, Whens and Thens](https://www.ruby-forum.com/t/cucumber-group-given-whens-and-thens/153728)

<div class="topic-metadata">

**Author:** [@aidy\_lewis](https://www.ruby-forum.com/u/aidy_lewis)\
**Replies:** 10\
**Last updated:** [November 24, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/cucumber-group-given-whens-and-thens/153728 "2008-11-24T18:02:48Z")

</div>

Hi, Do you think this is a satisfactory way to group step files related to one feature e.g. publish\_content\_givens publish\_content\_whens publish\_content\_thens ? Thanks Aidy

---

## [Test::Unit Functional failure puzzle](https://www.ruby-forum.com/t/test-unit-functional-failure-puzzle/153755)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 8\
**Last updated:** [November 24, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/test-unit-functional-failure-puzzle/153755 "2008-11-24T17:50:30Z")

</div>

Not an RSpec question, but I was led to this problem by starting to use autotest with cucumber and so, however unjustly, I feel that RSpec has to shoulder some of the blame. I have a failing test in my clients\_control…

---

## [Missing method implementation\_backtrace](https://www.ruby-forum.com/t/missing-method-implementation-backtrace/153753)

<div class="topic-metadata">

**Author:** [@killswitchcollectiv](https://www.ruby-forum.com/u/killswitchcollectiv)\
**Replies:** 13\
**Last updated:** [November 24, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/missing-method-implementation-backtrace/153753 "2008-11-24T17:25:43Z")

</div>

We just upgraded from rspec version 1.1.4 to rspec version 1.1.11 and found that this no longer exists: File lib/spec/example/example\_methods.rb, line 84 def implementation\_backtrace eval("caller", @\_implementat…

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

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