Sha256: 798089fb1cbc6419ca956cd3a747d9e49069e9fcc038ae53a24ae091adeaa295

Contents?: true

Size: 361 Bytes

Versions: 7

Compression:

Stored size: 361 Bytes

Contents

require "spec_helper"

RSpec.describe Ribose::Widget do
  describe ".all" do
    it "retrieves the list of widgets" do
      stub_ribose_widget_list_api
      widgets = Ribose::Widget.all

      expect(widgets.first.id).not_to be_nil
      expect(widgets.first.status).to eq("loaded")
      expect(widgets.first.type).to eq("Widget::RssFeed")
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ribose-0.5.0 spec/ribose/widget_spec.rb
ribose-0.4.1 spec/ribose/widget_spec.rb
ribose-0.4.0 spec/ribose/widget_spec.rb
ribose-0.3.2 spec/ribose/widget_spec.rb
ribose-0.3.1 spec/ribose/widget_spec.rb
ribose-0.3.0 spec/ribose/widget_spec.rb
ribose-0.2.0 spec/ribose/widget_spec.rb