jamblaster bootstrap
This commit is contained in:
parent
10632c35c0
commit
cdd78f1b94
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue