Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
require 'services/user'
require 'services/artist'
describe 'POST /interests' do
# Use User and Artist Ruby wrappers to call services
let(:user) { Services::User.create(:name => 'Mike Pack') }
let(:artist) { Services::Artist.create(:name => 'Cool Band', :genres => ['Jazz', 'R&B']) }
it 'registers a users interest in an artist' do
# Initiate POST request
post '/interests', {
:user_id =>,
:artist_id =>
last_response.should be_ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment