Actually that is quite common and the remedy is probably what Dan suggested. But you can do `rspec -rprawn-svg spec` to fix this from command line instead of modifying the source code.
Vít
The lines you commented out were the ones that were requiring the library. If you want to require the library directly, then you need to insert this line:
require 'prawn-svg'
That will load both this library and Prawn (as well as any other dependencies).
Best Regards,
-Dan
On Mon, Oct 26, 2020 at 5:19 PM Christopher Brown <chris.brown@redhat.com> wrote:
_______________________________________________Hi folks,
I'm looking to try and enable some more tests on some of the packages I maintain but am struggling with removal of bundler.
I have attempted to enable it in prawn-svg using the usual:
%check
pushd .%{gem_instdir}
sed -i "/require 'bundler'/ s/^/#/" spec/spec_helper.rb
sed -i "/Bundler/ s/^/#/" spec/spec_helper.rb
rspec spec
popd
however I'm getting:
NameError:
uninitialized constant Prawn
on any mock builds I run. I'm sure this is an incredibly newbie question but would appreciate it if someone can point me in the right direction.
I'll look to enhance https://fedoraproject.org/wiki/Packaging:Ruby#Running_test_suites with my subsequent knowledge, if it helps.
Thanks
--
Christopher Brown
ruby-sig mailing list -- ruby-sig@lists.fedoraproject.org
To unsubscribe send an email to ruby-sig-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/ruby-sig@lists.fedoraproject.org
--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux
_______________________________________________ ruby-sig mailing list -- ruby-sig@lists.fedoraproject.org To unsubscribe send an email to ruby-sig-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/ruby-sig@lists.fedoraproject.org