Sha256: 0383cd44e523f936361024d07fb733e3fd541ff2708cad33f56794b37b5a1b13

Contents?: true

Size: 759 Bytes

Versions: 3

Compression:

Stored size: 759 Bytes

Contents

# coding: utf-8

RSpec::Core::ExampleGroup.instance_eval do
  let(:mock_searches) do
    {
      default: mock_search,
      empty:   mock_empty_search
    }
  end

  let(:mock_search) do
    artists   = pointer_array_with(mock_artist, mock_artist_two)
    albums    = pointer_array_with(mock_album)
    tracks    = pointer_array_with(mock_track, mock_track_two)
    playlists = pointer_array_with(mock_playlist_two)

    Spotify.mock_search(:ok, "my å utf8  query", "another thing", 1337, tracks.length, tracks, 42, albums.length, albums, 81104, artists.length, artists, 0716, playlists.length, playlists, nil, nil)
  end

  let(:mock_empty_search) do
    Spotify.mock_search(:ok, "", nil, 0, 0, nil, 0, 0, nil, 0, 0, nil, 0, 0, nil, nil, nil)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hallon-0.18.0 spec/support/search_mocks.rb
hallon-0.17.0 spec/support/search_mocks.rb
hallon-0.16.0 spec/support/search_mocks.rb