Thanks for the information Arun.
On Tue, Jul 9, 2013 at 2:42 PM, Arun Sakthivel <[email protected]>wrote: > Can you check this link: > > http://stackoverflow.com/questions/9891028/how-to-get-the-current-test-filename-from-rspec > > *Thanks & Regards, > * > *S.Arun* > > > On Mon, Jul 8, 2013 at 11:13 AM, Ankita <[email protected]> wrote: > >> Hi Arun >> >> Thanks for the information, but, it does not solve my purpose. >> As I wanted to use like a method where in I could get the current file >> name and use it anywhere I want in the code >> >> For example, I am writing have 3 files <script1.rb, script2.rb, >> script3.rb> >> and I would like to output a message at the end of execution of all the >> scripts where in the message says something like "Tested $filename (where >> it will pass name of file from script1.rb, script2.rb, script3.rb)" >> >> >> >> >> >> >> The information transmitted may be confidential, is intended only for the >> person to which it is addressed, and may not be reviewed, retransmitted, >> disseminated or relied upon by any other persons. If you received this >> message in error, please contact the sender and destroy any paper or >> electronic copies of this message. Any views expressed in this email >> communication are those of the individual sender, except where the sender >> specifically states otherwise. Adslot Pty Ltd does not represent, warrant >> or guarantee that the communication is free of errors, virus or >> interference. >> >> >> On Mon, Jul 8, 2013 at 2:20 PM, Arun Sakthivel >> <[email protected]>wrote: >> >>> Hi, >>> >>> Save file in /spec/fixtures/files >>> >>> In controller like >>> get 'update_logo', {id: id, business: { :logo => >>> fixture_file_upload("/files/logo.jpg", 'image/jpg') }} >>> >>> *Thanks & Regards, >>> * >>> *S.Arun* >>> >>> >>> On Mon, Jul 8, 2013 at 9:45 AM, Ankita@Adslot >>> <[email protected]>wrote: >>> >>>> I want to pass in current file name inside rspec code where in if the >>>> code fails, it would save a screen shot with the file name where it failed. >>>> >>>> Not sure how to pass current file name in rspec. >>>> >>>> Any help is really appreciated! >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "rspec" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To post to this group, send email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/rspec/6973014d-ae1f-467e-b73c-ad02312cfa4a%40googlegroups.com >>>> . >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "rspec" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/rspec/CAMRum%3DyEq8yC_kwzRCbkeTN9tQ7UeApCsGQkVfuH99nzhiqEdw%40mail.gmail.com >>> . >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "rspec" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rspec/CAA%2BE1tMhqZaPoWbnOHW51L5F22f_Nr76ZYrWJUV-27QjQ4SZ-g%40mail.gmail.com >> . >> >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rspec/CAMRum%3Dwf8FmJgab%2BxkUWJOPpuN6r%2BWRSXP7VM1YhxAk6EcBSpg%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/CAA%2BE1tPkr2pYtxpX3e4U-5CowHWg8VQ54Fpsum8nnF73qJpqag%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
