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
Dne 27. 10. 20 v 0:37 Dan Allen napsal(a):
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
<[email protected] <mailto:[email protected]>> 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
<https://fedoraproject.org/wiki/Packaging:Ruby#Running_test_suites>
with my subsequent knowledge, if it helps.
Thanks
--
Christopher Brown
_______________________________________________
ruby-sig mailing list -- [email protected]
<mailto:[email protected]>
To unsubscribe send an email to
[email protected]
<mailto:[email protected]>
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
<https://docs.fedoraproject.org/en-US/project/code-of-conduct/>
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
<https://fedoraproject.org/wiki/Mailing_list_guidelines>
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
<https://lists.fedoraproject.org/archives/list/[email protected]>
--
Dan Allen (he, him, his) | @mojavelinux |
https://twitter.com/mojavelinux <https://twitter.com/mojavelinux>
_______________________________________________
ruby-sig mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
_______________________________________________
ruby-sig mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]