learn-co-curriculum / rspec-fizzbuzz

Fizzbuzz with RSpec Tutorial
Other
1 stars 156 forks source link

Rspec didn't seem to need the relative reference to fizzbuzz.rb #62

Closed miclp closed 8 years ago

miclp commented 8 years ago

In the lesson, after defining fizzbuzz with:

def fizzbuzz end

there is some info. about how rspec still gives a no method error and that you can fix this by putting: require_relative '../fizzbuzz.rb'

On my machine, though, it seems that RSpec was able to find fizzbuzz.rb and gave me the ArgumentError even before adding the require_relative line to fizzbuzz_spec.rb

I'm on a mac and rspec -v gives me 3.4.2

Thanks, Michael

AnnJohn commented 8 years ago

thanks @miclp, the issue is probably because we have require fizzbuzz.rb in the other spec file. We'll take a closer look at this and update.

pletcher commented 8 years ago

Fixed in 345b785a9d6cd10d7f662cdeafff75ef5a85e3e8