On Thu, Jun 11, 2020 at 4:46 PM sebb <seb...@gmail.com> wrote:
>
> On Thu, 11 Jun 2020 at 19:36, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> > On Thu, Jun 11, 2020 at 2:19 PM sebb <seb...@gmail.com> wrote:
> > >
> > > I get the following error when running the tests locally:
> > >
> > > $ rspec www/board/agenda/
> > > Error: Cannot find module 'jsdom-global/register'
> >
> > What happens if you run the following instead?
> >
> > $ bundle exec rake test
>
> $ bundle exec rake test
> bundler: failed to load command: rake 
> (/usr/local/lib/ruby/gems/2.6.0/bin/rake)
> Gem::Exception: can't find executable rake for gem rake. rake is not
> currently included in the bundle, perhaps you meant to add it to your
> Gemfile?
>   
> /usr/local/Cellar/ruby/2.6.5/lib/ruby/2.6.0/bundler/rubygems_integration.rb:462:in
> `block in replace_bin_path'
>   
> /usr/local/Cellar/ruby/2.6.5/lib/ruby/2.6.0/bundler/rubygems_integration.rb:482:in
> `block in replace_bin_path'
>   /usr/local/lib/ruby/gems/2.6.0/bin/rake:23:in `<top (required)>'

Were you running this in the board/agenda directory?

- Sam Ruby

> > This shouldn't be necessary, but should you at a later point get to
> > where you need to cleanup after a failed test, run the following
> > command:
> >
> > $ bundle exec rake clobber
>
> The same error message ...
>
> > > The tests work OK in Travis, so I assume there must be something
> > > missing from my installation, but I don't know what.
> >
> > The tests aren't failing, but do show some svn error messages.
> >
> > Note: the tests that are listed as pending were recently disabled.
> > Those tests depend on the content of the templates, which were
> > recently moved out of the Whimsy github repository and moved to the
> > foundation/board/templates directory in svn.
> >
> > > It would be useful to fix this so I can check changes before
> > > committing in future...
> >
> > Indeed!
> >
> > > Sebb
> >
> > - Sam Ruby

Reply via email to