Sha256: d109e6cf15fc45b6c58a5ebae5c77c8d93d1443182c3d1e8443eda95f75aea9e
Contents?: true
Size: 584 Bytes
Versions: 5
Compression:
Stored size: 584 Bytes
Contents
require "spec_helper" require "spec_helpers/mock_ncode_data_helper" describe NcodeSyosetu::Client do include_context "with mock ncode data" let(:ncode) { "n00000" } describe "#get" do subject { NcodeSyosetu.client.get(ncode) } it "scrapes ncode novel" do expect(subject.toc.title).to eq("たいとる") expect(subject.episodes.size).to eq(2) expect(subject.episodes[0]).to be_a(NcodeSyosetu::Model::Heading) expect(subject.episodes[1]).to be_a(NcodeSyosetu::Model::Episode) expect(subject.episodes[1].number).to eq(1) end end end
Version data entries
5 entries across 5 versions & 1 rubygems