spec/configuration_spec.rb in pdfkit-0.8.2 vs spec/configuration_spec.rb in pdfkit-0.8.3
- old
+ new
@@ -1,20 +1,9 @@
require 'spec_helper'
describe PDFKit::Configuration do
subject { PDFKit::Configuration.new }
describe "#wkhtmltopdf" do
- it "can be configured" do
- subject.wkhtmltopdf = '/my/bin/wkhtmltopdf'
- expect(subject.wkhtmltopdf).to eql '/my/bin/wkhtmltopdf'
- end
-
- # This test documents existing functionality. Feel free to fix.
- it "can be poorly configured" do
- subject.wkhtmltopdf = 1234
- expect(subject.wkhtmltopdf).to eql 1234
- end
-
context "when not explicitly configured" do
it "detects the existance of bundler" do
# Test assumes bundler is installed in your test environment
expect(subject).to receive(:`).with('bundle exec which wkhtmltopdf').and_return('c:\windows\path.exe')
subject.wkhtmltopdf