Sha256: 7f795187c510d3cddc10957a3f2522b0b4d054d21afa14ac636e99a123abc808

Contents?: true

Size: 339 Bytes

Versions: 5

Compression:

Stored size: 339 Bytes

Contents

require "spec_helper"

RSpec.describe Ribose::SpaceCategory do
  describe ".all" do
    it "retrieves the list of space categories" do
      stub_ribose_space_categories_api
      categories = Ribose::SpaceCategory.all

      expect(categories.first.id).not_to be_nil
      expect(categories.first.name).to eq("animals")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ribose-0.5.0 spec/ribose/space_category_spec.rb
ribose-0.4.1 spec/ribose/space_category_spec.rb
ribose-0.4.0 spec/ribose/space_category_spec.rb
ribose-0.3.2 spec/ribose/space_category_spec.rb
ribose-0.3.1 spec/ribose/space_category_spec.rb