spec/FitFile_spec.rb in fit4ruby-0.0.9 vs spec/FitFile_spec.rb in fit4ruby-0.0.10

- old
+ new

@@ -8,10 +8,12 @@ # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # +$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) + require 'fit4ruby' describe Fit4Ruby do before(:each) do @@ -102,13 +104,13 @@ it 'should write an Activity FIT file and read it back' do fit_file = 'test.fit' File.delete(fit_file) if File.exists?(fit_file) Fit4Ruby.write(fit_file, @activity) - File.exists?(fit_file).should be_true + expect(File.exists?(fit_file)).to be true b = Fit4Ruby.read(fit_file) - b.should == @activity + expect(b).to eq(@activity) File.delete(fit_file) end end