spec/support/helper_methods.rb in metric_fu-4.4.1 vs spec/support/helper_methods.rb in metric_fu-4.4.2
- old
+ new
@@ -14,9 +14,19 @@
end
def read_resource(path_in_resources)
File.read("#{resources_path}/#{path_in_resources}")
end
+
def metric_data(path_in_resources)
metric_path = read_resource("yml/#{path_in_resources}")
YAML.load( metric_path )
+end
+
+def resources_path
+ "#{MetricFu.root_dir}/spec/resources"
+ # directory(name)
+end
+
+def compare_paths(path1, path2)
+ File.join(MetricFu.root_dir, path1).should == File.join(MetricFu.root_dir, path2)
end