Sha256: 793053e48be5c4398394a491b9fcb4bd66983afde3783e19d34ac46be81a2e51

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 Bytes

Contents

require 'spec_helper'

describe Fappu::Connection, vcr: {cassette_name: 'connection'} do
  describe ".new" do
    subject { described_class.new }

    it {expect(subject).to be_a Fappu::Connection}

    it "defaults to Fakku's API url" do
      expect(subject.base_url).to eq("https://api.fakku.net/index")
    end

  end

  describe "#body" do
    subject {described_class.new.body}
    it "lists info about hentai mangoes" do
      expect(subject['total']).to be > 0
    end
  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fappu-1.0.0 spec/lib/fappu/connection_spec.rb