# RSpec

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

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

---

## [\[Cucumber\] how to get name from scenario hook?](https://www.ruby-forum.com/t/cucumber-how-to-get-name-from-scenario-hook/167004)

<div class="topic-metadata">

**Author:** [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Replies:** 3\
**Last updated:** [May 2, 2009, 6:27am UTC](https://www.ruby-forum.com/t/cucumber-how-to-get-name-from-scenario-hook/167004 "2009-05-02T06:27:28Z")

</div>

Hi, Given the hook: After do |scenario| end How do I get the name of the scenario from the scenario parameter? scenario.name doesn’t work, and I looked through the source code and it was not immediately obvious to…

---

## [Help with some basics](https://www.ruby-forum.com/t/help-with-some-basics/166892)

<div class="topic-metadata">

**Author:** [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Replies:** 6\
**Last updated:** [May 2, 2009, 5:56am UTC](https://www.ruby-forum.com/t/help-with-some-basics/166892 "2009-05-02T05:56:30Z")

</div>

I’m suddenly getting an error on my specs /usr/local/lib/ruby/gems/1.8/gems/rspec-1.2.5/lib/spec/example/example\_methods.rb:24:in description': No description supplied for example declared on /home/andrew/dev/rhythm/we…

---

## [Rspec-rails without ActiveRecord framework failure](https://www.ruby-forum.com/t/rspec-rails-without-activerecord-framework-failure/167001)

<div class="topic-metadata">

**Author:** [@Matt\_McNeil](https://www.ruby-forum.com/u/Matt_McNeil)\
**Replies:** 2\
**Last updated:** [May 1, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/rspec-rails-without-activerecord-framework-failure/167001 "2009-05-01T23:30:30Z")

</div>

Hello, Our project is not using ActiveRecord and so I’ve removed database.yml and added this line to the environment.rb file: config.frameworks -= \[ :active\_record \] Although I see in the rspec-rails source several …

---

## [Command to run a single scenario using cucumber](https://www.ruby-forum.com/t/command-to-run-a-single-scenario-using-cucumber/166995)

<div class="topic-metadata">

**Author:** [@anilg](https://www.ruby-forum.com/u/anilg)\
**Replies:** 1\
**Last updated:** [May 1, 2009, 9:56pm UTC](https://www.ruby-forum.com/t/command-to-run-a-single-scenario-using-cucumber/166995 "2009-05-01T21:56:31Z")

</div>

Hi, I have installed cucumber and was able to run all the scenarios using rake features, but can body tell me. What is the command to run a single scenario? Thanks, Anil kumar.

---

## [Plugin to generate text logs using cucumber](https://www.ruby-forum.com/t/plugin-to-generate-text-logs-using-cucumber/166996)

<div class="topic-metadata">

**Author:** [@anilg](https://www.ruby-forum.com/u/anilg)\
**Replies:** 3\
**Last updated:** [May 1, 2009, 9:54pm UTC](https://www.ruby-forum.com/t/plugin-to-generate-text-logs-using-cucumber/166996 "2009-05-01T21:54:11Z")

</div>

Hi, I was able to run the scenarios using rake features in cucmber, All the respective results are displayed in colour in std output. is there any plugin using which i can capture these results(that are generated at …

---

## [\[rspec\]spec\_server: already initialized constant MyTestClass](https://www.ruby-forum.com/t/rspec-spec-server-already-initialized-constant-mytestclass/166971)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 3\
**Last updated:** [May 1, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/rspec-spec-server-already-initialized-constant-mytestclass/166971 "2009-05-01T19:09:34Z")

</div>

I’m creating a class in my spec file to test out a module, but when I run the spec a second time in spec\_server, I get the error above. I presume this is because rails is un-loading the class, and it’s not getting re-…

---

## [Before and After blocks for individual feature files?](https://www.ruby-forum.com/t/before-and-after-blocks-for-individual-feature-files/166678)

<div class="topic-metadata">

**Author:** [@biot023](https://www.ruby-forum.com/u/biot023)\
**Replies:** 24\
**Last updated:** [May 1, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/before-and-after-blocks-for-individual-feature-files/166678 "2009-05-01T14:53:45Z")

</div>

Hi – is it possible to set before and after blocks for individual feature files? I’ve tried putting them in step files, but they just get called before everything, like they’d been declared in env.rb, which is consis…

---

## [Cucumber for testing web services?](https://www.ruby-forum.com/t/cucumber-for-testing-web-services/166953)

<div class="topic-metadata">

**Author:** [@Ola\_EldSSSSy](https://www.ruby-forum.com/u/Ola_EldSSSSy)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 10:42am UTC](https://www.ruby-forum.com/t/cucumber-for-testing-web-services/166953 "2009-05-01T10:42:24Z")

</div>

I am looking for a framework to test web services, and was wondering whether Cucumber is ready to do this “out of the box”. (Or is Ruby knowledge required?. I have posted a question on Stackoverflow if anyone wants to…

---

## [\[ANN\] rspec-rails 1.2.6 Released](https://www.ruby-forum.com/t/ann-rspec-rails-1-2-6-released/166940)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 6:58am UTC](https://www.ruby-forum.com/t/ann-rspec-rails-1-2-6-released/166940 "2009-05-01T06:58:50Z")

</div>

rspec-rails version 1.2.6 has been released! Behaviour Driven Development for Ruby on Rails. Version 1.2.6 / 2009-04-30 bug fixes restored rake tasks for rspec\[-rails\] as plugins http://rspec.info http://rub…

---

## [Script/general rspec\_\*](https://www.ruby-forum.com/t/script-general-rspec/166886)

<div class="topic-metadata">

**Author:** [@Nicholas\_Van\_W](https://www.ruby-forum.com/u/Nicholas_Van_W)\
**Replies:** 4\
**Last updated:** [May 1, 2009, 6:58am UTC](https://www.ruby-forum.com/t/script-general-rspec/166886 "2009-05-01T06:58:50Z")

</div>

I have started using rspec after generating much of my applications models and controllers. Much of the code is plain vanilla scaffolding. I accept that this is not very BDD, but I’m building a tool that required I …

---

## [Partitioning Specs](https://www.ruby-forum.com/t/partitioning-specs/166889)

<div class="topic-metadata">

**Author:** [@Nicholas\_Van\_W](https://www.ruby-forum.com/u/Nicholas_Van_W)\
**Replies:** 6\
**Last updated:** [May 1, 2009, 6:30am UTC](https://www.ruby-forum.com/t/partitioning-specs/166889 "2009-05-01T06:30:45Z")

</div>

Hi, I installed Restful Authentication and it placed a lot of specs and features in cucumber and rspec directories. Is there a way frameworks can partition there tests so that “rake spec” doesn’t run all their tests…

---

## [Submodule rspec and rspec-rails issues](https://www.ruby-forum.com/t/submodule-rspec-and-rspec-rails-issues/166908)

<div class="topic-metadata">

**Author:** [@thekernel](https://www.ruby-forum.com/u/thekernel)\
**Replies:** 10\
**Last updated:** [May 1, 2009, 4:55am UTC](https://www.ruby-forum.com/t/submodule-rspec-and-rspec-rails-issues/166908 "2009-05-01T04:55:58Z")

</div>

I started a brand new rails app and then ran the following. %\>git submodule add git://github.com/aslakhellesoy/cucumber.git vendor/plugins/cucumber %\>git submodule add git://github.com/brynary/webrat.git vendor/plugi…

---

## [\[Cucumber 0.2\] Failure to use should](https://www.ruby-forum.com/t/cucumber-0-2-failure-to-use-should/163359)

<div class="topic-metadata">

**Author:** [@hayafirst](https://www.ruby-forum.com/u/hayafirst)\
**Replies:** 6\
**Last updated:** [April 30, 2009, 4:12pm UTC](https://www.ruby-forum.com/t/cucumber-0-2-failure-to-use-should/163359 "2009-04-30T16:12:07Z")

</div>

I have a step definition like this: Then “the account should be created” do account = Account.find\_by\_name(“my shiny new account”) p account.class account.should\_not be\_blank end When running this step, I got the e…

---

## [Shoud error](https://www.ruby-forum.com/t/shoud-error/166887)

<div class="topic-metadata">

**Author:** [@Nicholas\_Van\_W](https://www.ruby-forum.com/u/Nicholas_Van_W)\
**Replies:** 2\
**Last updated:** [April 30, 2009, 3:47pm UTC](https://www.ruby-forum.com/t/shoud-error/166887 "2009-04-30T15:47:29Z")

</div>

Hi, I had some tests where I accidently used “.shoud” instead of “.should”. There was no error, and all tests passed no matter what. Is the the correct behaviour or should there be an error if you mispell should? Th…

---

## [\[RSPEC\] \[CUCUMBER\] have autotest running \*only\* the features](https://www.ruby-forum.com/t/rspec-cucumber-have-autotest-running-only-the-features/166793)

<div class="topic-metadata">

**Author:** [@Jean-Michel\_Garnier](https://www.ruby-forum.com/u/Jean-Michel_Garnier)\
**Replies:** 1\
**Last updated:** [April 30, 2009, 12:10pm UTC](https://www.ruby-forum.com/t/rspec-cucumber-have-autotest-running-only-the-features/166793 "2009-04-30T12:10:30Z")

</div>

Hi, I am joining a project which is using Rails 2.0.2, Rspec as a plugin 1.1.4 The problem is specs take 10 minutes to run and I have no time to optimize them now. I am adding cucumber features and would like to ru…

---

## [Mocked models' names being overwritten by rspec](https://www.ruby-forum.com/t/mocked-models-names-being-overwritten-by-rspec/166862)

<div class="topic-metadata">

**Author:** [@biot023](https://www.ruby-forum.com/u/biot023)\
**Replies:** 1\
**Last updated:** [April 30, 2009, 10:25am UTC](https://www.ruby-forum.com/t/mocked-models-names-being-overwritten-by-rspec/166862 "2009-04-30T10:25:30Z")

</div>

Hi – I have a model that has a name attribute, and a method I’m speccing to remove all models from a collection if they have a name that starts with an underscore. My problem is that RSpec seems to be overwriting th…

---

## [Rake spec - no output](https://www.ruby-forum.com/t/rake-spec-no-output/166861)

<div class="topic-metadata">

**Author:** [@tick](https://www.ruby-forum.com/u/tick)\
**Replies:** 1\
**Last updated:** [April 30, 2009, 9:52am UTC](https://www.ruby-forum.com/t/rake-spec-no-output/166861 "2009-04-30T09:52:10Z")

</div>

rake spec does not seem to be doing anything. Could it be a problem with ruby 1.9? Here is what I did: rails rspec-test cd rspec-test test.rb: config.gem “rspec”, :lib =\> false, :version =\> “\>= 1.2.0” test.rb: confi…

---

## [Noob question](https://www.ruby-forum.com/t/noob-question/166711)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 11\
**Last updated:** [April 30, 2009, 6:38am UTC](https://www.ruby-forum.com/t/noob-question/166711 "2009-04-30T06:38:48Z")

</div>

Just getting started with cucumber on Mac 10.5.6. I have the default Ruby install (1.8). I’m not using Rails. I did a gem update cucumber and now have cucumber-0.3.1 in my gems. I also did a git clone and have a re…

---

## [\[ANN\] rspec 1.2.5 Released](https://www.ruby-forum.com/t/ann-rspec-1-2-5-released/166848)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [April 30, 2009, 5:56am UTC](https://www.ruby-forum.com/t/ann-rspec-1-2-5-released/166848 "2009-04-30T05:56:08Z")

</div>

rspec version 1.2.5 has been released! http://rspec.info http://rubyforge.org/projects/rspec http://github.com/dchelimsky/rspec/wikis removed\_email\_address@domain.invalid Behaviour Driven Development for Ruby. Change…

---

## [Change in API 0.3.1 clarification](https://www.ruby-forum.com/t/change-in-api-0-3-1-clarification/166836)

<div class="topic-metadata">

**Author:** [@manu](https://www.ruby-forum.com/u/manu)\
**Replies:** 0\
**Last updated:** [April 30, 2009, 12:12am UTC](https://www.ruby-forum.com/t/change-in-api-0-3-1-clarification/166836 "2009-04-30T00:12:40Z")

</div>

Hi I am looking at the change in the API in the history.txt and looks like 3 visitor method are now gone. They are replaced by one. Also for Table, the status is not passed anymore… Looking at the current HTML forma…

---

## [Current Evaluation of RSpec](https://www.ruby-forum.com/t/current-evaluation-of-rspec/166744)

<div class="topic-metadata">

**Author:** [@Nicholas\_Van\_W](https://www.ruby-forum.com/u/Nicholas_Van_W)\
**Replies:** 4\
**Last updated:** [April 29, 2009, 8:06pm UTC](https://www.ruby-forum.com/t/current-evaluation-of-rspec/166744 "2009-04-29T20:06:39Z")

</div>

I’m new to RSpec and reading the beta book. Looking around outside of the book, reading reviews of RSpec on the web seems tricky. Most reviews seem very dated, and as a result are misleading. Is this an accurate asse…

---

## [Cucumber localization](https://www.ruby-forum.com/t/cucumber-localization/166795)

<div class="topic-metadata">

**Author:** [@ikikik](https://www.ruby-forum.com/u/ikikik)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/cucumber-localization/166795 "2009-04-29T17:10:10Z")

</div>

Hello, I’m trying to localize Cucumber to work with Hebrew. I have added the needed translation to languages.yml I converted the division.feature properly. but when I used the addition.feature cucumber gives me the f…

---

## [NetBeans with Cucumber module](https://www.ruby-forum.com/t/netbeans-with-cucumber-module/166777)

<div class="topic-metadata">

**Author:** [@aidy\_lewis](https://www.ruby-forum.com/u/aidy_lewis)\
**Replies:** 3\
**Last updated:** [April 29, 2009, 4:57pm UTC](https://www.ruby-forum.com/t/netbeans-with-cucumber-module/166777 "2009-04-29T16:57:47Z")

</div>

Hi, Aslak twittered this NetBeans Cucumber module : http://members.chello.at/server/modules.html I have tried to manually install it, but NetBeans in complaining about: "Missing required modules for Plugin Cucumber F…

---

## [Is it possible to have autotest running \*only\* the features not the specs](https://www.ruby-forum.com/t/is-it-possible-to-have-autotest-running-only-the-features-not-the-specs/166789)

<div class="topic-metadata">

**Author:** [@Jean-Michel\_Garnier](https://www.ruby-forum.com/u/Jean-Michel_Garnier)\
**Replies:** 0\
**Last updated:** [April 29, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-have-autotest-running-only-the-features-not-the-specs/166789 "2009-04-29T16:30:08Z")

</div>

Hi, I am joining a project which is using Rails 2.0.2, Rspec as a plugin 1.1.4 The problem is specs take 10 minutes to run and I have no time to optimize them now. I am adding cucumber features and would like to ru…

---

## [Cucumber/Webrat/Selenium + SSL?](https://www.ruby-forum.com/t/cucumber-webrat-selenium-ssl/166774)

<div class="topic-metadata">

**Author:** [@Wincent\_C](https://www.ruby-forum.com/u/Wincent_C)\
**Replies:** 1\
**Last updated:** [April 29, 2009, 3:57pm UTC](https://www.ruby-forum.com/t/cucumber-webrat-selenium-ssl/166774 "2009-04-29T15:57:13Z")

</div>

Has anybody had any luck getting Cucumber, Webrat and Selenium to play nicely together for SSL sites? My test environment: nginx front-end accepting SSL requests, proxying them to mongrel back-end mongrel back-e…

---

## [\[rspec\] loading specs as an object model without running them](https://www.ruby-forum.com/t/rspec-loading-specs-as-an-object-model-without-running-them/166754)

<div class="topic-metadata">

**Author:** [@martin\_j\_andrews](https://www.ruby-forum.com/u/martin_j_andrews)\
**Replies:** 9\
**Last updated:** [April 29, 2009, 1:51pm UTC](https://www.ruby-forum.com/t/rspec-loading-specs-as-an-object-model-without-running-them/166754 "2009-04-29T13:51:34Z")

</div>

I’d like to load all of my examples into memory without actually running them, so I can traverse the object tree and get descriptions etc. I’m finding it tricky to figure out how to do that though. There seems to be …

---

## [\[Cucumber\] call the (Treetop?) parser directly?](https://www.ruby-forum.com/t/cucumber-call-the-treetop-parser-directly/166435)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 10\
**Last updated:** [April 29, 2009, 1:35pm UTC](https://www.ruby-forum.com/t/cucumber-call-the-treetop-parser-directly/166435 "2009-04-29T13:35:41Z")

</div>

Cucumberists: The sample code: require ‘treetop’ require ‘cucumber’ require ‘cucumber/parser’ require ‘cucumber/parser/treetop\_ext’ too many requires because fishing around! include Cucumber include Parser inclu…

---

## [Uninitialized constant ActionController running Cucumber features in Aptana/RadRails IDE](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-running-cucumber-features-in-aptana-radrails-ide/166609)

<div class="topic-metadata">

**Author:** [@wjsimacek](https://www.ruby-forum.com/u/wjsimacek)\
**Replies:** 3\
**Last updated:** [April 29, 2009, 12:56pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-actioncontroller-running-cucumber-features-in-aptana-radrails-ide/166609 "2009-04-29T12:56:58Z")

</div>

I’m just starting on BDD. I installed the gems for webrats and cucumber. I also ran the following in the Ruby shell: rake gems:install RAILS\_EN=test script/generate cucumber These commands seemed to create the exp…

---

## [Cucumber: Setting Dependency among scenarios](https://www.ruby-forum.com/t/cucumber-setting-dependency-among-scenarios/166546)

<div class="topic-metadata">

**Author:** [@goodneema](https://www.ruby-forum.com/u/goodneema)\
**Replies:** 4\
**Last updated:** [April 29, 2009, 11:34am UTC](https://www.ruby-forum.com/t/cucumber-setting-dependency-among-scenarios/166546 "2009-04-29T11:34:04Z")

</div>

Hi, I am planning to use cucumber-java for my java project for automated testing. I would like to know if there is any option in cucumber, by which we can explicitly provide dependency among running scenarios. For ex…

---

## [BDD for C#?](https://www.ruby-forum.com/t/bdd-for-c/166434)

<div class="topic-metadata">

**Author:** [@devbanana](https://www.ruby-forum.com/u/devbanana)\
**Replies:** 16\
**Last updated:** [April 29, 2009, 8:22am UTC](https://www.ruby-forum.com/t/bdd-for-c/166434 "2009-04-29T08:22:49Z")

</div>

Hi, I know this is slightly off topic, but I’m having trouble finding something, and wondered if anyone here had experience with any BDD frameworks for C#. I found NBehave (http://www.codeplex.com/NBehave), but it s…

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

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