spec/excel_spec.rb in datashift-0.15.0 vs spec/excel_spec.rb in datashift-0.16.0
- old
+ new
@@ -74,11 +74,11 @@
@excel.create_worksheet( :name => "underworld")
@excel.create_worksheet( :name => "jeff mills")
@excel.create_worksheet( :name => "autechre")
@excel.create_worksheet( :name => "swarms")
- @excel.worksheets.should have_exactly(4).items
+ expect(@excel.worksheets.size).to eq 4
end
it "can access a worksheet by index" do
@excel.create_worksheet( :name => "underworld")
@@ -173,13 +173,16 @@
row.each { |col| col.should == values.shift }
end
- it "can support bools" do
- pending("reading back value sometimes returns "" when cell was set to false")
- end
+ #it "can support bools" do
+ # pending "reading back value sometimes returns "" when cell was set to false"
+
+ # sheet = @excel.create_worksheet
+
+ #end
it "can write an Excel file" do
@excel = Excel.new
sheet1 = @excel.create_worksheet
@@ -191,10 +194,10 @@
expected = result_file('it_can_save_an_excel_file.xls')
@excel.write( expected )
- File.exists?(expected).should be_true
+ expect(File.exists?(expected)).to eq true
end
end