Sha256: 5f4c93f7548b7c7d0d74710b97ff96ba7af6cfe5c31d924d914c0bdded51ce3e

Contents?: true

Size: 497 Bytes

Versions: 7

Compression:

Stored size: 497 Bytes

Contents

require "spec_helper"

RSpec.describe "TestDeleteAction" do
  describe ".delete" do
    it "removes a specific resource" do
      resource_id = 123_456_789
      stub_ribose_calendar_delete_api(resource_id)

      expect { Ribose::TestDeleteAction.delete(resource_id) }.not_to raise_error
    end
  end

  module Ribose
    class TestDeleteAction < Ribose::Base
      include Ribose::Actions::Delete

      private

      def resources_path
        "calendar/calendar"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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