Displaying 1 result from an estimated 1 matches for "chbox".
Did you mean:
hbox
2012 Sep 15
2
[RSpec Testing] Methods take two arguments
...;Should be in public folder" do
file = File.new ("#{Rails.root}/public/pdf")
File.exist?(file).should be_true
end
it "Should have two arguments" do
file =
File.new("#{Rails.root}/public/pdf/templates/chbox.pdf")
user = User.create(:first_name => "mark", :last_name =>
"jhon", :account_number => "3442", :phone_number => "23333333")
create_pdf.should_receive(object,template).with(user,file)
end
end*
*
*how...