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
> <[email protected]> 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
>>  [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/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 [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/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&utm_source=footer
  2. 
https://groups.google.com/d/msgid/rspec/CADUxQmvOkfdkqhw5d3joT0dtBGnXLykti5WTS4r2mDn-_fo7ow%40mail.gmail.com?utm_medium=email&utm_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 [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/1476888662.905063.760928169.010D60AD%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to