#423 new
Yi Wen

Nested describes output an extra empty result

Reported by Yi Wen | May 29th, 2008 @ 06:43 PM | in No-Milestone-Assigned

For example, If I have a spec like this (or see the attached person_spec.rb).

require 'person'

describe Person do

before(:each) do

@person = Person.new

end

describe "when being bad" do

before(:each) do

@person.status = :bad

end

it "should be a beer drinker" do

@person.should be_beer_drinker

end

end

end

With -fs, I got the result like below:

Please note the first line is the extra shouldn't be there.

Person

Person when being bad

  • should be a beer drinker

with -fh, please see the attached 1.html

This is a pure RSpec test, not a Rspec-Rails test.

Thanks

Yi

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Behaviour Driven Development for Ruby.

Shared Ticket Bins

People watching this ticket

Attachments