jamblaster bootstrap

This commit is contained in:
Seth Call 2016-07-09 06:20:42 -05:00
parent 10632c35c0
commit cdd78f1b94
1 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ describe "Artifact API ", :type => :api do
before do
@jb_client = FactoryGirl.create(:artifact_update, :product => 'JamClient/JamBlaster')
get '/api/artifacts/clients.json?serialno=abcde'
get '/api/artifacts/JamBlaster.json', {serialno: 'abcde'}
last_response.status.should eql(200)
@response = JSON.parse(last_response.body)
@ -70,8 +70,8 @@ describe "Artifact API ", :type => :api do
it {
@response.length.should == 1
@response[@jb_client.product]["size"].should == @jb_client.size
@response[@jb_client.product]["uri"].should_not be_nil
@response['JamBlaster']["size"].should == @jb_client.size
@response['JamBlaster']["uri"].should_not be_nil
Jamblaster.find_by_serial_no('abcde').should_not be_nil
}
end