* fix music session api test

This commit is contained in:
Bert Owen 2014-05-20 21:22:49 +08:00
parent a379689418
commit b4908ce924
1 changed files with 1 additions and 2 deletions

View File

@ -33,8 +33,7 @@ describe "Scheduled Music Session API ", :type => :api do
end
it "should create session" do
client = FactoryGirl.create(:connection, :user => user, :ip_address => "1.1.1.1", :client_id => "1")
post '/api/sessions.json', defopts.merge({:client_id => client.client_id}).to_json, "CONTENT_TYPE" => 'application/json'
post '/api/sessions.json', defopts.to_json, "CONTENT_TYPE" => 'application/json'
last_response.status.should eql(201)
end
end