# RSpec

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

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

---

## [Rspec 1.1.2 on Windows](https://www.ruby-forum.com/t/rspec-1-1-2-on-windows/126746)

<div class="topic-metadata">

**Author:** [@BenFyvie](https://www.ruby-forum.com/u/BenFyvie)\
**Replies:** 6\
**Last updated:** [January 23, 2008, 2:40pm UTC](https://www.ruby-forum.com/t/rspec-1-1-2-on-windows/126746 "2008-01-23T14:40:50Z")

</div>

I am using Rspec 1.1.2 on Windows XP SP2 I am receiving the following error when I run ‘rake spec’ from a brand new project: C:/SVN\_Projects/rspec/vendor/plugins/rspec/lib/spec/runner/options.rb:107:in \`colour=': Yo…

---

## [Integrate\_views is not executing my views](https://www.ruby-forum.com/t/integrate-views-is-not-executing-my-views/126900)

<div class="topic-metadata">

**Author:** [@zeno](https://www.ruby-forum.com/u/zeno)\
**Replies:** 2\
**Last updated:** [January 23, 2008, 11:06am UTC](https://www.ruby-forum.com/t/integrate-views-is-not-executing-my-views/126900 "2008-01-23T11:06:15Z")

</div>

I wanted to use “integrate\_views” as Ryan explains in his RailsCast #71 (#71 Testing Controllers with RSpec - RailsCasts) …but I can’t get it to work: the view code in not executed I looked everywhere but I can’t unde…

---

## [Trying to spec ExceptionNotifiable behavior](https://www.ruby-forum.com/t/trying-to-spec-exceptionnotifiable-behavior/126875)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 23, 2008, 12:59am UTC](https://www.ruby-forum.com/t/trying-to-spec-exceptionnotifiable-behavior/126875 "2008-01-23T00:59:31Z")

</div>

Hello List. I’m trying to overwrite part of ExceptionNotifiable (ExceptionNotification plugin) to render customized error 500 pages based on browser agents. For this, I’ve created a fake controller that inherits dire…

---

## [RSpec 1.1.2, --colour and Windows](https://www.ruby-forum.com/t/rspec-1-1-2-colour-and-windows/126754)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/rspec-1-1-2-colour-and-windows/126754 "2008-01-21T23:27:17Z")

</div>

Hello RSpec’ers :slight\_smile: In reply to this message: http://rubyforge.org/pipermail/rspec-users/2008-January/005477.html I provided a patch against CURRENT for fixing the latest issue introduced in 1.1.2 regardin…

---

## ["should\_not ==" vs "should !="](https://www.ruby-forum.com/t/should-not-vs-should/126538)

<div class="topic-metadata">

**Author:** [@elegant](https://www.ruby-forum.com/u/elegant)\
**Replies:** 5\
**Last updated:** [January 21, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/should-not-vs-should/126538 "2008-01-21T15:47:02Z")

</div>

describe “should\_not == vs. should !=” it do 5.should\_not == 6 end # passes it do 5.should != 6 end # fails end I’m running the rspec 1.1.2 gem with the corresponding Textmate bundle The second failure surprises …

---

## [Specin' update\_attributes! + Hash](https://www.ruby-forum.com/t/specin-update-attributes-hash/126706)

<div class="topic-metadata">

**Author:** [@cnicolaou](https://www.ruby-forum.com/u/cnicolaou)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/specin-update-attributes-hash/126706 "2008-01-21T15:26:54Z")

</div>

Hi, I am facing a problem while trying to test a method that updates an attribute. The attribute format should be converted to YAML format before storing in the table which is excatly what is going on. But when testi…

---

## [Autotest hanging](https://www.ruby-forum.com/t/autotest-hanging/126664)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 6:54am UTC](https://www.ruby-forum.com/t/autotest-hanging/126664 "2008-01-21T06:54:53Z")

</div>

Heya guys & gals, I have to do some development on a Windows box, hitting a stupid problem, wondering if anyone on the list knows how to solve it. I had RSpec 1.1.1 and ZenTest 3.6.1 - this was working fine with auto…

---

## [Spam Protection](https://www.ruby-forum.com/t/spam-protection/126497)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 4\
**Last updated:** [January 21, 2008, 5:55am UTC](https://www.ruby-forum.com/t/spam-protection/126497 "2008-01-21T05:55:17Z")

</div>

I was disgruntled with the amount of spam I was getting, so I started setting up accounts for the various mailing lists I listen to. I use removed\_email\_address@domain.invalid to read the mail here. Along with the rs…

---

## [New --pattern option](https://www.ruby-forum.com/t/new-pattern-option/126629)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [January 20, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/new-pattern-option/126629 "2008-01-20T18:07:45Z")

</div>

Hello all, Just a heads up that I made a change (in svn trunk - not yet released) that may change what files get loaded when you run the rake or spec commands. Not a big deal if you’ve been following convention, but f…

---

## [New in ruby and rspec testing](https://www.ruby-forum.com/t/new-in-ruby-and-rspec-testing/126473)

<div class="topic-metadata">

**Author:** [@antonk](https://www.ruby-forum.com/u/antonk)\
**Replies:** 8\
**Last updated:** [January 19, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/new-in-ruby-and-rspec-testing/126473 "2008-01-19T19:09:07Z")

</div>

Hi to all I’m a new in ruby and RoR programming. And my problem is Rspec. I don’t understand how to write test files in rspec. Maybe it’s because I don’t know ruby good. Can you send me links to fine examples/scree…

---

## [Autotest problem?](https://www.ruby-forum.com/t/autotest-problem/126569)

<div class="topic-metadata">

**Author:** [@visage](https://www.ruby-forum.com/u/visage)\
**Replies:** 4\
**Last updated:** [January 19, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/autotest-problem/126569 "2008-01-19T19:07:22Z")

</div>

I’m hoping someone on this list will be able to help. I just updated zentest, rspec plugin and rspec\_on\_rails plugin, and I get the following exception when I run autotest. I realize that the -O is causing the problem…

---

## [CC.rb and RSpec](https://www.ruby-forum.com/t/cc-rb-and-rspec/126508)

<div class="topic-metadata">

**Author:** [@bryan](https://www.ruby-forum.com/u/bryan)\
**Replies:** 2\
**Last updated:** [January 18, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/cc-rb-and-rspec/126508 "2008-01-18T22:29:11Z")

</div>

When trying to configure a rspec 1.1.2 based app in CC.rb, I came across the following: /home/bryan/cruisecontrolrb-1.2.1/projects/support-engines/work/vendor/ plugins/rspec\_on\_rails/lib/spec/rails/…/…/…/…/rspec/lib/s…

---

## [Re: new in ruby and rspec testing](https://www.ruby-forum.com/t/re-new-in-ruby-and-rspec-testing/126482)

<div class="topic-metadata">

**Author:** [@Al\_Chou](https://www.ruby-forum.com/u/Al_Chou)\
**Replies:** 0\
**Last updated:** [January 18, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/re-new-in-ruby-and-rspec-testing/126482 "2008-01-18T17:08:47Z")

</div>

You can always spider the site (e.g., use Web S. Sucker on the Mac). Depending on which spider utility you use, you may have to do some manual editing afterward; Web S. Sucker, for instance, doesn’t rewrite the absolu…

---

## [Rspec problem in testing RoR application](https://www.ruby-forum.com/t/rspec-problem-in-testing-ror-application/126450)

<div class="topic-metadata">

**Author:** [@antonk](https://www.ruby-forum.com/u/antonk)\
**Replies:** 2\
**Last updated:** [January 18, 2008, 11:31am UTC](https://www.ruby-forum.com/t/rspec-problem-in-testing-ror-application/126450 "2008-01-18T11:31:12Z")

</div>

Hello. I install gems rspec and rspec\_on\_rails I have this Error when try to run Rspec tests on my RoR application: /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/dependencies.rb:263:in \`load\_missing\_c…

---

## [Session data and user stories](https://www.ruby-forum.com/t/session-data-and-user-stories/126441)

<div class="topic-metadata">

**Author:** [@whatevan](https://www.ruby-forum.com/u/whatevan)\
**Replies:** 1\
**Last updated:** [January 18, 2008, 11:05am UTC](https://www.ruby-forum.com/t/session-data-and-user-stories/126441 "2008-01-18T11:05:30Z")

</div>

hello there, i have been trying my hand at this rbehave material, specifically in terms of integration testing a rails application, and i am curious about the most friendly way to deal with session data. currently,…

---

## [Testing modules](https://www.ruby-forum.com/t/testing-modules/126440)

<div class="topic-metadata">

**Author:** [@Neil\_MSYoung](https://www.ruby-forum.com/u/Neil_MSYoung)\
**Replies:** 1\
**Last updated:** [January 18, 2008, 10:06am UTC](https://www.ruby-forum.com/t/testing-modules/126440 "2008-01-18T10:06:47Z")

</div>

I’ve developed a module to include in ActiveRecord derived classes. Can I test the module without having to tie it to a particular class? atm, I’m including it in my User class and writing the tests in user\_spec.rb, b…

---

## [Unusual challenges speccing external software](https://www.ruby-forum.com/t/unusual-challenges-speccing-external-software/126305)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 5\
**Last updated:** [January 17, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/unusual-challenges-speccing-external-software/126305 "2008-01-17T18:38:34Z")

</div>

This is something I’ve come up against twice. First, I have an interactive editor which calls vi, emacs, or TextMate (etc.) via Unix, and then loads the file handed to the editor back into IRB after it’s edited and sa…

---

## [Rspec\_on\_rails\_matchers](https://www.ruby-forum.com/t/rspec-on-rails-matchers/126257)

<div class="topic-metadata">

**Author:** [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Replies:** 2\
**Last updated:** [January 17, 2008, 12:26am UTC](https://www.ruby-forum.com/t/rspec-on-rails-matchers/126257 "2008-01-17T00:26:55Z")

</div>

All, Sorry for spamming this list about this but I think everyone who could help me with this problem is on this list… If there is a better place to post this question let me know. Anyways, I am trying to use rspec\_…

---

## [RSpec stories introduction](https://www.ruby-forum.com/t/rspec-stories-introduction/126040)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 6\
**Last updated:** [January 16, 2008, 2:37am UTC](https://www.ruby-forum.com/t/rspec-stories-introduction/126040 "2008-01-16T02:37:32Z")

</div>

I have played a bit with RSpec specs and now want to check out stories. I note that there is no generator for rspec stories pre se (unless I managed to miss all references to one ) and that the only directory relatin…

---

## [Broken URL on rspec.info](https://www.ruby-forum.com/t/broken-url-on-rspec-info/126116)

<div class="topic-metadata">

**Author:** [@Cody\_PSSkidmore](https://www.ruby-forum.com/u/Cody_PSSkidmore)\
**Replies:** 5\
**Last updated:** [January 15, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/broken-url-on-rspec-info/126116 "2008-01-15T23:34:30Z")

</div>

Hey folks. I was looking for the mailing list archive up on rspec.info. I clicked on the “community” link and received the URL “http://ey01-s00414/community/”. This isn’t correct, obviously. The hint shows it as, …

---

## [Problem with ruby-debug and rspec](https://www.ruby-forum.com/t/problem-with-ruby-debug-and-rspec/126165)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/problem-with-ruby-debug-and-rspec/126165 "2008-01-15T22:53:22Z")

</div>

So i’ve been getting this same thing with both rspec 1.1.1 and now with 1.1.2. ruby-debug works with i’m in the application code, but not when i’m in the ‘spec’, or spec helper methods i’m loading. Basically any comma…

---

## [Autotest displays no output](https://www.ruby-forum.com/t/autotest-displays-no-output/118843)

<div class="topic-metadata">

**Author:** [@pangel](https://www.ruby-forum.com/u/pangel)\
**Replies:** 12\
**Last updated:** [January 15, 2008, 3:30pm UTC](https://www.ruby-forum.com/t/autotest-displays-no-output/118843 "2008-01-15T15:30:23Z")

</div>

Hey, I’m trying to configure autotest with rspec on cygwin but something is going wrong. I made a very simple testing environment with a user.rb and user\_spec.rb file. Rspec works fine, but autotest outputs nothing -…

---

## [Okay, I'm finally asking for help](https://www.ruby-forum.com/t/okay-im-finally-asking-for-help/126054)

<div class="topic-metadata">

**Author:** [@visage](https://www.ruby-forum.com/u/visage)\
**Replies:** 4\
**Last updated:** [January 15, 2008, 3:41am UTC](https://www.ruby-forum.com/t/okay-im-finally-asking-for-help/126054 "2008-01-15T03:41:13Z")

</div>

Hi, all! I would love if someone could help me figure this out. I can’t seem to see why the following fails: Here’s the spec: it “should redirect back to the index page” do Coupon.should\_receive (:new).with({“name…

---

## [TextMate bundle not compatible with nested specs for running focused tests?](https://www.ruby-forum.com/t/textmate-bundle-not-compatible-with-nested-specs-for-running-focused-tests/125940)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 4\
**Last updated:** [January 14, 2008, 6:24pm UTC](https://www.ruby-forum.com/t/textmate-bundle-not-compatible-with-nested-specs-for-running-focused-tests/125940 "2008-01-14T18:24:07Z")

</div>

Seems like the recently updated (and wonderful) textmate bundle does not take into account running individual tests that are in nested specs. Anybody else notice this? Any ideas? Matt

---

## [How to trace running spec](https://www.ruby-forum.com/t/how-to-trace-running-spec/125910)

<div class="topic-metadata">

**Author:** [@hailandkill](https://www.ruby-forum.com/u/hailandkill)\
**Replies:** 3\
**Last updated:** [January 14, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/how-to-trace-running-spec/125910 "2008-01-14T12:33:49Z")

</div>

Hey all, I have a spec that is hanging when it is running. How do I get the rspec runner to show what specs it’s running so I can which one is hanging? I am calling the runner from my rails project. Thanks, Ben

---

## [.html.erb files and autotest](https://www.ruby-forum.com/t/html-erb-files-and-autotest/125930)

<div class="topic-metadata">

**Author:** [@visage](https://www.ruby-forum.com/u/visage)\
**Replies:** 10\
**Last updated:** [January 14, 2008, 4:36am UTC](https://www.ruby-forum.com/t/html-erb-files-and-autotest/125930 "2008-01-14T04:36:11Z")

</div>

When I work with a .html.erb file, the autotest rspec on rails stuff doesn’t understand the file to map it to the right test. I wanted to submit a patch for this, but I’m unsure where the specs would be to update. I …

---

## [View spec'ing style](https://www.ruby-forum.com/t/view-specing-style/125909)

<div class="topic-metadata">

**Author:** [@olbrich](https://www.ruby-forum.com/u/olbrich)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/view-specing-style/125909 "2008-01-13T18:32:06Z")

</div>

I’ve been getting my head around view spec’ing lately for a fairly complex project that makes heavy use of partials in views and I have hit up against a style puzzle. I see two strategies for spec’ing views: First: …

---

## [Re: Role of stories vs specs, revisited](https://www.ruby-forum.com/t/re-role-of-stories-vs-specs-revisited/125906)

<div class="topic-metadata">

**Author:** [@bloc](https://www.ruby-forum.com/u/bloc)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/re-role-of-stories-vs-specs-revisited/125906 "2008-01-13T18:00:26Z")

</div>

Jay - are you familiar with Acceptance Test Driven Development/Planning and/or Test Driven Development? I am with TDD and Acceptance testing (not sure if this is the same as Acceptance Test Driven Development) . I u…

---

## [Should\_receive twice and arguments](https://www.ruby-forum.com/t/should-receive-twice-and-arguments/125892)

<div class="topic-metadata">

**Author:** [@Ivo\_D](https://www.ruby-forum.com/u/Ivo_D)\
**Replies:** 2\
**Last updated:** [January 13, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/should-receive-twice-and-arguments/125892 "2008-01-13T15:06:09Z")

</div>

Hi all, I have a method calling Klass.create! two times with different arguments (this happens in a class reponsable for reading in a csv file) I want to test those like this: in one test: Klass.should\_receive(:create…

---

## [Re: Role of stories vs specs, revisited](https://www.ruby-forum.com/t/re-role-of-stories-vs-specs-revisited/125870)

<div class="topic-metadata">

**Author:** [@bloc](https://www.ruby-forum.com/u/bloc)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/re-role-of-stories-vs-specs-revisited/125870 "2008-01-13T13:55:10Z")

</div>

because if you have integration tests covering everything, then you’ll know pretty quickly when your tests aren’t up to par. If we have integration tests that cover everything then why have another set of tests? At …

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

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