Sha256: 3d1fe254f6fdd8543af622d85271d92f6300e70f644f05f0c679ee555a7736cb

Contents?: true

Size: 322 Bytes

Versions: 19

Compression:

Stored size: 322 Bytes

Contents

# encoding: utf-8

shared_examples_for 'an array of resources' do

  it "should return array of resources" do
    objects = requestable
    objects.should be_a Enumerable
    objects.should have(1).items
  end

  it "should be a mash type" do
    objects = requestable
    objects.first.should be_a Hashie::Mash
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
github_api-0.12.3 spec/shared/array_of_resources_behaviour.rb
github_api-0.12.2 spec/shared/array_of_resources_behaviour.rb
github_api-0.12.1 spec/shared/array_of_resources_behaviour.rb
github_api-0.12.0 spec/shared/array_of_resources_behaviour.rb
github_api-0.11.3 spec/shared/array_of_resources_behaviour.rb
github_api-0.11.2 spec/shared/array_of_resources_behaviour.rb
github_api-0.11.1 spec/shared/array_of_resources_behaviour.rb
github_api-0.11.0 spec/shared/array_of_resources_behaviour.rb
github_api-0.10.2 spec/shared/array_of_resources_behaviour.rb
github_api-0.10.1 spec/shared/array_of_resources_behaviour.rb
github_api-0.10.0 spec/shared/array_of_resources_behaviour.rb
github_api-0.9.7 spec/shared/array_of_resources_behaviour.rb
github_api-0.9.6 spec/shared/array_of_resources_behaviour.rb
github_api-0.9.5 spec/shared/array_of_resources_behaviour.rb
github_api-0.9.4 spec/shared/array_of_resources_behaviour.rb
github_api-0.9.3 spec/shared/array_of_resources_behaviour.rb
github_api-0.9.2 spec/shared/array_of_resources_behaviour.rb
github_api-0.9.1 spec/shared/array_of_resources_behaviour.rb
github_api-0.9.0 spec/shared/array_of_resources_behaviour.rb