# encoding: utf-8 require 'spec_helper' describe "./bin/quandl replace" do let(:prefix){ "replace" } let(:command){ self.class.superclass.description } subject{ quandl( [prefix, command].flatten.join(" ") ) } context data_path("replace.qdf") do its(:stdout){ should match /Updated|Created/ } its(:stderr){ should be_blank } end context "SCRAPER_TEST_1394485290783983" do let(:prefix){ "download" } its(:stdout){ should match "code: SCRAPER_TEST_1394485290783983" } end end