I believe this is caused by a bad example on
https://github.com/rspec/rspec/wiki/autotest
,specifically under the section "Advanced autotest configuration".
I ran into this exact same issue and it was solved by changing the
example to use spec/**/*_spec.rb.
I went ahead and took the liberty of u
Thanks for your fast reply David,
> > The rake task requires spec/**/*.spec
>
> Close, but not quite. The default pattern is spec/**/*_spec.rb.
Typo sorry
>
> > Autotest rspec2 requires spec/**/*
>
> Again, this incorrect. Autotest fires off shell commands that include a list
> of files to load
On Jan 21, 2011, at 4:57 AM, Rob Westgeest wrote:
> On Nov 22 2010, 9:42 pm, LesFreeman wrote:
>> On Sep 28, 10:42 pm, Amiruddin Nagri wrote:
>>
>>> I am having asharedexample'allow authorized actions' for my Rails 3 RSpec
>>> 2.beta.20 application. Thesharedexamplelooks like
>>
>>> share_exam
I am having the same problem.
Autotest with rspec seem to differ from rspecs rake task in which
files to automatically require.
The rake task requires spec/**/*.spec
Autotest rspec2 requires spec/**/*
As I am sharing example groups in their own files names
(shared_*_examples.rb), and require the
I'm sure is not the best solution, but I solved the problem creating an
Initializer monkey patching the method giving the error. I'm pretty new
on Ruby and company, as always scratching the surface, and only now
getting into the deep, but I hope it will help.
# extract config/initializers/rspec
I too am having this error
On Sep 28, 10:42 pm, Amiruddin Nagri wrote:
> I am having a shared example 'allow authorized actions' for my Rails 3 RSpec
> 2.beta.20 application. The shared example looks like
>
> share_examples_for 'allow authorized actions' do
> ...
> end
>
> This shared example i
I am having a shared example 'allow authorized actions' for my Rails 3 RSpec
2.beta.20 application. The shared example looks like
share_examples_for 'allow authorized actions' do
...
end
This shared example is in file
spec/controllers/support/authorization_shared_example.rb, which I am
requirin