Sha256: 0b8821bcca197863a0119b3ee17491fbbc71df30dc99960362b2559f75306329

Contents?: true

Size: 478 Bytes

Versions: 9

Compression:

Stored size: 478 Bytes

Contents

require 'spec_helper'

describe BitBucket::API, '#actions' do
  let(:api) { BitBucket::Repos::Keys }

  context 'when class' do
    it "lists all available actions for an api" do
      expect(api.actions).to match_array([:actions, :all, :create, :delete, :edit, :list])
    end
  end

  context 'when instance' do
    it "lists all available actions for an api" do
      expect(api.new.actions).to match_array([:actions, :all, :create, :delete, :edit, :list])
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
zz_bitbucket_rest_api-0.1.11 spec/bitbucket_rest_api/api/actions_spec.rb
zz_bitbucket_rest_api-0.1.10 spec/bitbucket_rest_api/api/actions_spec.rb
zz_bitbucket_rest_api-0.1.9 spec/bitbucket_rest_api/api/actions_spec.rb
zz_bitbucket_rest_api-0.1.8 spec/bitbucket_rest_api/api/actions_spec.rb
bitbucket_rest_api2-0.9.5 spec/bitbucket_rest_api/api/actions_spec.rb
bitbucket_rest_api2-0.9.1 spec/bitbucket_rest_api/api/actions_spec.rb
bitbucket_rest_api2-0.2.2 spec/bitbucket_rest_api/api/actions_spec.rb
bitbucket_rest_api2-0.2.1 spec/bitbucket_rest_api/api/actions_spec.rb
bitbucket_rest_api2-0.2.0 spec/bitbucket_rest_api/api/actions_spec.rb