Sha256: e6990960a4531225f76585bb9d25886eb4ccbba769650f259f2d3b72be0c25e3

Contents?: true

Size: 318 Bytes

Versions: 11

Compression:

Stored size: 318 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_an Array
    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

11 entries across 11 versions & 1 rubygems

Version Path
github_api-0.8.11 spec/shared/array_of_resources_behaviour.rb
github_api-0.8.10 spec/shared/array_of_resources_behaviour.rb
github_api-0.8.9 spec/shared/array_of_resources_behaviour.rb
github_api-0.8.8 spec/shared/array_of_resources_behaviour.rb
github_api-0.8.7 spec/shared/array_of_resources_behaviour.rb
github_api-0.8.6 spec/shared/array_of_resources_behaviour.rb
github_api-0.8.5 spec/shared/array_of_resources_behaviour.rb
github_api-0.8.4 spec/shared/array_of_resources_behaviour.rb
github_api-0.8.3 spec/shared/array_of_resources_behaviour.rb
github_api-0.8.2 spec/shared/array_of_resources_behaviour.rb
github_api-0.8.1 spec/shared/array_of_resources_behaviour.rb