如何使用RSpec读取电子表格选项卡的名称及其用于xls上传的数据?

时间:2019-05-23 07:12:25

标签: rspec rspec-rails

我正在尝试编写RSpec,以上传具有多个标签的xls电子表格,每个标签中包含多个数据。如何使用RSpec读取选项卡名称并验证特定选项卡中的数据?

    describe "#insert_abc" do
      sheet = Roo::Spreadsheet.open("spec/fixtures/rspec_upload_file.xls")
      context "Selecting abc sheet to upload the sheet's data" do
        it { is_expected.to include("abc")}
      end
    end

0 个答案:

没有答案