Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
View
14 spec/active_pdftk/call_spec.rb
@@ -3,13 +3,13 @@
describe ActivePdftk::Call do
context "#new" do
- before do
+ before :all do
options = {}
options[:path] = ENV['path'] unless ENV['path'].nil?
@pdftk = ActivePdftk::Call.new(options)
end
- it "should set the path (not nil)" do
+ it "should set the path (not nil)"do
@pdftk.default_statements[:path].should_not be_nil
end
@@ -24,7 +24,7 @@
if ENV['path']
it "should find the path of pdftk (unstable)" do
- @pdftk.default_statements[:path].should == ENV['path']
+ ActivePdftk::Call.locate_pdftk.should == ENV['path']
end
it "should allow a custom path" do # not very testing ~!?
@@ -48,7 +48,7 @@
context "#set_cmd" do
context "prepare command" do
- before do
+ before :all do
@pdftk = ActivePdftk::Call.new
end
@@ -95,7 +95,7 @@
end
context "build_range_option" do
- before do
+ before :all do
@pdftk = ActivePdftk::Call.new
end
@@ -142,7 +142,7 @@
end
context "build command" do
- before do
+ before :all do
@pdftk = ActivePdftk::Call.new(:input => 'test.pdf', :options => {:flatten => true})
end
@@ -161,7 +161,7 @@
end
context "#pdftk" do
- before do
+ before :each do
@pdftk = ActivePdftk::Call.new
@file = File.new path_to_pdf('spec.fields.pdf')
@tempfile = Tempfile.new('specs')
View
BIN  spec/support/pdftk
Binary file not shown

No commit comments for this range

Something went wrong with that request. Please try again.