require 'lastfm' RSpec.configure do |config| def fixture(filename) File.dirname(__FILE__) + '/fixtures/' + filename end def make_response(xml_filename_or_string) if xml_filename_or_string !~ / bar XML ok_response_xml = < XML @ok_response = make_response(ok_response_xml) end end