Re: [rspec-users] autotest giving error when having shared example in specs

2011-02-03 Thread Adam Greene
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

Re: [rspec-users] autotest giving error when having shared example in specs

2011-01-21 Thread Rob Westgeest
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

Re: [rspec-users] autotest giving error when having shared example in specs

2011-01-21 Thread David Chelimsky
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

Re: [rspec-users] autotest giving error when having shared example in specs

2011-01-21 Thread Rob Westgeest
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

Re: [rspec-users] autotest giving error when having shared example in specs

2011-01-11 Thread Andrea Reginato
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

Re: [rspec-users] autotest giving error when having shared example in specs

2010-11-22 Thread LesFreeman
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

[rspec-users] autotest giving error when having shared example in specs

2010-09-28 Thread Amiruddin Nagri
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