* fix music session api test
This commit is contained in:
parent
a379689418
commit
b4908ce924
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue