spec/fixtures/format.rb in quandl_format-0.1.2 vs spec/fixtures/format.rb in quandl_format-0.1.3
- old
+ new
@@ -17,23 +17,23 @@
description: |-
Here is a description with multiple lines.
This is the second line.
-
Date, Value, High, Low
-2013-11-20,9.99470588235294,11.003235294117646,14.00164705882353
-2013-11-19,10.039388096885814,,14.09718770934256
+2013-11-20,9.99,11,14
+2013-11-19,10.03,,14.09
# Second dataset
code: DATASET_CODE_2
source_code: SOURCE_CODE_2
name: Test Dataset Name 2
description: Here is a description with multiple lines.
-
Date, Value, High, Low
-2013-11-20,9.99470588235294,11.003235294117646,14.00164705882353
-2013-11-19,10.039388096885814,,14.09718770934256
-2013-11-18,11.039388096885814,,15.09718770934256
+2013-11-20,9.99,11.0,14.0
+2013-11-19,10.03,,14.09
+2013-11-18,11.03,,15.09
}
end
def qdf_attributes
{
@@ -42,11 +42,11 @@
name: 'Test Dataset Name 2',
description: "Here is a description with multiple lines.\n This is the second line.",
column_names: ['Date', 'Value', 'High', 'Low'],
private: false,
reference_url: 'http://test.com/',
- data: Quandl::Data.new([["2013-11-20", "9.99470588235294", "11.003235294117646", "14.00164705882353"],["2013-11-19", "10.039388096885814", nil, "14.09718770934256"]]),
+ data: Quandl::Data.new([["2013-11-20", "9.99", "11.0", "14.0"],["2013-11-19", "10.03", nil, "14.09"]]),
}
end
def qdf_attributes_to_format
%Q{source_code: SOURCE_CODE
@@ -57,9 +57,9 @@
This is the second line.
private: false
reference_url: http://test.com/
-
Date,Value,High,Low
-2013-11-20,9.99470588235294,11.003235294117646,14.00164705882353
-2013-11-19,10.039388096885814,,14.09718770934256
+2013-11-20,9.99,11.0,14.0
+2013-11-19,10.03,,14.09
}
end