spec/models/rspeed/splitter/append_spec.rb in rspeed-0.1.0 vs spec/models/rspeed/splitter/append_spec.rb in rspeed-0.2.0
- old
+ new
@@ -13,9 +13,14 @@
'{"file":"1_spec.rb","time":1.0}'
]
end
context 'when files is not given' do
+ before do
+ clean_csv_file
+ populate_csv_file
+ end
+
it 'read csv and append file and time on rspeed key' do
splitter.append
expect(splitter.get('rspeed_tmp')).to eq [
'{"file":"./spec/0_2_spec.rb","time":0.2}',