AJP
AJP

Reputation: 28483

Gem ImageSpec installed but not found

I want to use the ImageSpec gem so have the following in a file:

require 'imagespec'

but get the following load error at runtime:

`require': cannot load such file -- imagespec (LoadError)

gem list ruby-imagespec shows:

*** LOCAL GEMS ***
ruby-imagespec (0.3.1)

but gem which ruby-imagespec gives:

ERROR:  Can't find ruby library file or shared library ruby-imagespec

How do I require the file?

Upvotes: 1

Views: 127

Answers (1)

AJP
AJP

Reputation: 28483

You need to use require 'image_spec'. See the init.rb file for the gem.

Upvotes: 1

Related Questions