i have an array of raw_responses using web_mock i want use them as args of to_return method and chain to stub_request method:
#["file1.txt", "subfolder/file_n.txt", "awsome_name.txt"]
rr = Dir.glob(File.expand_path("../../markups/*.txt", __FILE__))
stub_request(:get, "www.google.de").to_return(rr[0]).to_return(rr[1]).to_return(rr[2])
How to rewrite last string using enumerator or something like tap to use all array of rr?