This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 147630 - Incorrect information in RSpec handling
Summary: Incorrect information in RSpec handling
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Testing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-18 17:48 UTC by dentharg
Modified: 2008-09-21 05:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dentharg 2008-09-18 17:48:35 UTC
Netbeans nightly 2008-09-17.

I have this auction_parser_spec.rb

describe AuctionParser do
    before(:each) do
        @ap = AuctionParser.new
    end

    it "should initialize empty $auction when created" do
        @ap.auction.should_not == nil
    end

    after do
        @ap = nil
    end
end

where the class is

class AuctionParser
    attr_reader :auction

    def initialize
    end
end

running RSpec from cmdline gives appropriate fail for the spec. Netbeans also... well, at least partially.

in right pane of Ruby Test Results is
1)
'AuctionParser should initialize empty $auction when created' FAILED
expected not: == nil,
         got:    nil
D:\Devel\Personal\acrawl\spec\parser\auction_parser_spec.rb:11

Finished in 0.032 seconds

1 example, 1 failure


in left
"No tests exectued"
  + AuctionParser PASSED
Comment 1 Erno Mononen 2008-09-20 17:27:12 UTC
Should be fixed now in #1c5aec765f48, there will be an automatic notification here when the fix has been integrated to 
the latest build. Thanks for reporting!
Comment 2 Quality Engineering 2008-09-21 05:13:05 UTC
Integrated into 'main-golden', will be available in build *200809210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1c5aec765f48
User: Erno Mononen <emononen@netbeans.org>
Log: #147630: Incorrect information in RSpec handling