search for: pdf_helper_spec

Displaying 1 result from an estimated 1 matches for "pdf_helper_spec".

2012 Sep 15
2
[RSpec Testing] Methods take two arguments
...try to run my test. It showed *PdfHelper Should have two arguments Failure/Error: create_pdf.should_receive(object,template).with(user,file) NameError: undefined local variable or method `create_pdf'' for #<RSpec::Core::ExampleGroup::Nested_1:0xabf72f0> # ./pdf_helper_spec.rb:13:in `block (2 levels) in <top (required)>'' *here is my pdf_helper_spec.rb file: * require ''pdf_helper'' describe "PdfHelper" do it "Should be in public folder" do file = File.new ("#{Rails.root}/public/pdf&quot...