Sha256: 60e903e0fc443964cc966ab713726a94b5cdf464c8c840c19738a976e0be51f6

Contents?: true

Size: 411 Bytes

Versions: 7

Compression:

Stored size: 411 Bytes

Contents

SPEC_ROOT = File.dirname(__FILE__)
$LOAD_PATH.unshift(SPEC_ROOT)
$LOAD_PATH.unshift(File.join(SPEC_ROOT, '..', 'lib'))
require 'imgkit'
require 'rspec'
require 'rspec/autorun'
require 'mocha'
require 'rack'
require 'tempfile'

RSpec.configure do |config|
  
  config.before do
    IMGKit.any_instance.stubs(:wkhtmltoimage).returns(
      File.join(SPEC_ROOT,'..','bin','wkhtmltoimage-proxy')
    )
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
imgkit-1.2.1 spec/spec_helper.rb
imgkit-1.2.0 spec/spec_helper.rb
imgkit-1.1.0 spec/spec_helper.rb
imgkit-1.0.2 spec/spec_helper.rb
imgkit-1.0.1 spec/spec_helper.rb
imgkit-1.0.0 spec/spec_helper.rb
imgkit-0.9.2 spec/spec_helper.rb