spec/lib/sources/csv_spec.rb in picky-2.1.2 vs spec/lib/sources/csv_spec.rb in picky-2.2.0

- old
+ new

@@ -48,12 +48,12 @@ before(:each) do @source = Sources::CSV.new :a, :b, :c, :file => :some_file end describe "harvest" do it "should yield the right data" do - field = stub :b, :from => :b - @source.harvest :anything, field do |id, token| + category = stub :b, :from => :b + @source.harvest category do |id, token| [id, token].should == [' 7', 'b data'] end end end describe "get_data" do @@ -68,11 +68,11 @@ before(:each) do @source = Sources::CSV.new :a, :b, :c, :file => :some_file, :key_format => :strip end describe "harvest" do it "should yield the right data" do - field = stub :b, :from => :b - @source.harvest :anything, field do |id, token| + category = stub :b, :from => :b + @source.harvest category do |id, token| [id, token].should == [' 7', 'b data'] end end end describe "get_data" do \ No newline at end of file