42
43
44
45
46
47
48
49
50
51
52
53
54
|
# File 'lib/rails_app_spec/matchers/artifact/shared/artifact_file_helper.rb', line 42
def get_artifact_name
case artifact_type
when :view
path = send(:view_file_name, folder, artifact_name) else
find_existing_artifact_method = "existing_#{artifact_type}_file"
if respond_to? find_existing_artifact_method
send find_existing_artifact_method, artifact_name, artifact_type, :root_path => root_path
else
raise "The method ##{find_existing_artifact_method} to find the artifact was not available"
end
end
end
|