spec/lib/quandl/command/replace_spec.rb in quandl-0.4.0 vs spec/lib/quandl/command/replace_spec.rb in quandl-0.4.1
- old
+ new
@@ -1,10 +1,8 @@
# encoding: utf-8
require 'spec_helper'
-replace_string = "source_code: BLAKEHIL\ncode: SCRAPER_TEST_1394485290783983\nname: Untitled Dataset 2014-04-04 13:08:49\ndescription: This dataset has no description.\nprivate: false\nreference_url: \nfrequency: daily\n-\nDate,High,Low,Settle\n2014-03-11,9.958,11.0,13.92\n\n"
-
describe "./bin/quandl replace" do
let(:prefix){ "replace" }
let(:command){ self.class.superclass.description }
subject{ quandl( [prefix, command].flatten.join(" ") ) }
@@ -15,9 +13,10 @@
end
context "SCRAPER_TEST_1394485290783983" do
let(:prefix){ "download" }
- its(:stdout){ should eq replace_string }
+ its(:stdout){ should match "code: SCRAPER_TEST_1394485290783983" }
+
end
end
\ No newline at end of file