spec/lib/sources/csv_spec.rb in picky-2.0.0.pre2 vs spec/lib/sources/csv_spec.rb in picky-2.0.0.pre3
- old
+ new
@@ -1,9 +1,16 @@
require 'spec_helper'
require 'csv'
describe Sources::CSV do
+ describe 'to_s' do
+ let(:source) { described_class.new :a, :b, :c, file:'some/file.csv' }
+ it 'outputs the correct string' do
+ source.to_s.should == 'Sources::CSV(a, b, c, {:file=>"some/file.csv"})'
+ end
+ end
+
describe 'without separator' do
before(:each) do
@source = Sources::CSV.new :a, :b, :c, :file => :some_file
end
it 'calls foreach correctly' do
\ No newline at end of file