Re: [rspec] Rspec.describe on windows 7 results in an error?

2016-10-19 Thread Mr. Kennedy
On Wednesday, October 19, 2016 at 10:51:12 AM UTC-4, Xavier Shay wrote:
>
> try RSpec not Rspec (capital S)
>
> (what error are you getting?)
>

Hi Xavier,

You are correct - it was throwing a NameError: uninitialized constant Rspec 
(NameError)

Thank you!

-- 
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 rspec+unsubscr...@googlegroups.com.
To post to this group, send email to rspec@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/8d1e309e-3cb7-4f77-a661-4bdd64aaa8e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [rspec] Rspec.describe on windows 7 results in an error?

2016-10-19 Thread Xavier Shay
try RSpec not Rspec (capital S)

(what error are you getting?)

On Tue, Oct 18, 2016, at 11:10 PM, Myron Marston wrote:
> What version of RSpec are you using?  Run `rspec -v` (or look in your
> `Gemfile.lock` if you are using bundler) to find out.  If you're using
> RSpec 3.x, I would absolutely expect `RSpec.describe` to work.  But on
> RSpec 2.x it should not.  It was part of the move in 3.x to support a
> zero monkey patching mode:
>
> http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#new-exposedslglobally-config-option-to-disable-rspec-core-monkey-patching
>
> HTH,
> Myron
>
> On Tue, Oct 18, 2016 at 10:54 PM, Mr. Kennedy
>  wrote:
>> Hello, I just got Rspec configured on my win7 lappy after wrestling
>> against RubyGems v2.4 (broken for Windows) and updating RubyGems to
>> v2.6.7. I'm just going through the tutorial videos on the home page
>> http://rspec.info/ and am wondering if it is just a Windows thing
>> that "Rspec.describe" throws an error? E.g. the bowling example:
>> require 'bowling'
>>
>> # Rspec.describe Bowling, "#score" do #<-- this throws an error
>> describe Bowling, "#score" do  #<-- this works
>>   context "with no strikes or spares" do
>> it "sums the pin count for each roll" do
>>   bowling = Bowling.new
>>   20.times { bowling.hit(4) }
>>   expect(bowling.score).to eq 80
>> end
>>   end
>> end
>>
>>
>> --
>>  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
>>  rspec+unsubscr...@googlegroups.com. To post to this group, send
>>  email to rspec@googlegroups.com. To view this discussion on the web
>>  visit
>>  
>> https://groups.google.com/d/msgid/rspec/2f62429d-3e21-4cc3-8b3a-2f83c210dc9a%40googlegroups.com[1].
>>  For more options, visit https://groups.google.com/d/optout.
>
>
> --
>  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 rspec+unsubscr...@googlegroups.com.
>  To post to this group, send email to rspec@googlegroups.com.
>  To view this discussion on the web visit
>  
> https://groups.google.com/d/msgid/rspec/CADUxQmvOkfdkqhw5d3joT0dtBGnXLykti5WTS4r2mDn-_fo7ow%40mail.gmail.com[2].
>  For more options, visit https://groups.google.com/d/optout.


Links:

  1. 
https://groups.google.com/d/msgid/rspec/2f62429d-3e21-4cc3-8b3a-2f83c210dc9a%40googlegroups.com?utm_medium=email_source=footer
  2. 
https://groups.google.com/d/msgid/rspec/CADUxQmvOkfdkqhw5d3joT0dtBGnXLykti5WTS4r2mDn-_fo7ow%40mail.gmail.com?utm_medium=email_source=footer

-- 
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 rspec+unsubscr...@googlegroups.com.
To post to this group, send email to rspec@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/1476888662.905063.760928169.010D60AD%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: [rspec] Rspec.describe on windows 7 results in an error?

2016-10-19 Thread Myron Marston
What version of RSpec are you using?  Run `rspec -v` (or look in your
`Gemfile.lock` if you are using bundler) to find out.  If you're using
RSpec 3.x, I would absolutely expect `RSpec.describe` to work.  But on
RSpec 2.x it should not.  It was part of the move in 3.x to support a zero
monkey patching mode:

http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#new-exposedslglobally-config-option-to-disable-rspec-core-monkey-patching

HTH,
Myron

On Tue, Oct 18, 2016 at 10:54 PM, Mr. Kennedy  wrote:

> Hello, I just got Rspec configured on my win7 lappy after wrestling
> against RubyGems v2.4 (broken for Windows) and updating RubyGems to v2.6.7.
> I'm just going through the tutorial videos on the home page
> http://rspec.info/ and am wondering if it is just a Windows thing that
> "Rspec.describe" throws an error? E.g. the bowling example:
> require 'bowling'
>
> # Rspec.describe Bowling, "#score" do #<-- this throws an error
> describe Bowling, "#score" do  #<-- this works
>   context "with no strikes or spares" do
> it "sums the pin count for each roll" do
>   bowling = Bowling.new
>   20.times { bowling.hit(4) }
>   expect(bowling.score).to eq 80
> end
>   end
> end
>
> --
> 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 rspec+unsubscr...@googlegroups.com.
> To post to this group, send email to rspec@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/rspec/2f62429d-3e21-4cc3-8b3a-2f83c210dc9a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 rspec+unsubscr...@googlegroups.com.
To post to this group, send email to rspec@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/CADUxQmvOkfdkqhw5d3joT0dtBGnXLykti5WTS4r2mDn-_fo7ow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.