Hi Myron,
  thanks a ton. It solved the problem.

Regards
Kumar

On Monday, March 30, 2015 at 8:42:42 PM UTC+5:30, Myron Marston wrote:
>
> On Mon, Mar 30, 2015 at 7:36 AM, kumar vinukonda <[email protected] 
> <javascript:>> wrote:
>
>> I am hitting with the following issue when I try the code in the link 
>> http://elementalselenium.com/tips/59-html-reporting.
>>
>> ~/Registria/elementalseleniumtest$ rspec reporting_spec.rb 
>> /var/lib/gems/2.2.0/gems/allure-rspec-0.6.9/lib/allure-rspec/formatter.rb:41:in
>>  
>> `start': uninitialized constant AllureRSpec::Formatter::Pathname (NameError)
>> from 
>> /var/lib/gems/2.2.0/gems/rspec-core-3.2.1/lib/rspec/core/reporter.rb:146:in 
>> `block in notify'
>> from 
>> /var/lib/gems/2.2.0/gems/rspec-core-3.2.1/lib/rspec/core/reporter.rb:145:in 
>> `each'
>> from 
>> /var/lib/gems/2.2.0/gems/rspec-core-3.2.1/lib/rspec/core/reporter.rb:145:in 
>> `notify'
>> from 
>> /var/lib/gems/2.2.0/gems/rspec-core-3.2.1/lib/rspec/core/reporter.rb:73:in 
>> `start'
>> from 
>> /var/lib/gems/2.2.0/gems/rspec-core-3.2.1/lib/rspec/core/reporter.rb:60:in 
>> `report'
>> from 
>> /var/lib/gems/2.2.0/gems/rspec-core-3.2.1/lib/rspec/core/runner.rb:108:in 
>> `run_specs'
>> from 
>> /var/lib/gems/2.2.0/gems/rspec-core-3.2.1/lib/rspec/core/runner.rb:86:in 
>> `run'
>> from 
>> /var/lib/gems/2.2.0/gems/rspec-core-3.2.1/lib/rspec/core/runner.rb:70:in 
>> `run'
>> from 
>> /var/lib/gems/2.2.0/gems/rspec-core-3.2.1/lib/rspec/core/runner.rb:38:in 
>> `invoke'
>> from /var/lib/gems/2.2.0/gems/rspec-core-3.2.1/exe/rspec:4:in `<top 
>> (required)>'
>> from /usr/local/bin/rspec:23:in `load'
>> from /usr/local/bin/rspec:23:in `<main>'
>>
>>
>> Can someone help me in resolving the issue.
>>
>> Regards
>> Kumar Vinukonda
>>
>
> The error is being raised because allure-rspec's formatter relies upon 
> pathname from the Ruby stdlib, but it isn't requiring it.  You can work 
> around this by adding a `require 'pathname'` to your `spec_helper.rb` 
> file.  You should probably also report it to allure-rspec so they can add 
> the require there as it really belongs there.
>
> HTH,
> Myron
>

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/98c2daec-c18b-4cf4-982d-ba33f098cf4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to