fix tests
This commit is contained in:
parent
7fc2575588
commit
7720dd2eb8
|
|
@ -25,15 +25,13 @@ describe "Scheduled Music Session API ", :type => :api do
|
|||
:legal_policy => true, :language => 'english',
|
||||
:timezone => "utc"} }
|
||||
|
||||
before do
|
||||
#sign_in user
|
||||
before(:all) do
|
||||
ActiveMusicSession.delete_all
|
||||
MusicSession.delete_all
|
||||
|
||||
login(user)
|
||||
end
|
||||
|
||||
it "should create session" do
|
||||
login(user)
|
||||
post '/api/sessions.json', defopts.to_json, "CONTENT_TYPE" => 'application/json'
|
||||
last_response.status.should eql(201)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue