diff --git a/web/spec/requests/artifacts_api_spec.rb b/web/spec/requests/artifacts_api_spec.rb index 003dba592..bcf89494d 100644 --- a/web/spec/requests/artifacts_api_spec.rb +++ b/web/spec/requests/artifacts_api_spec.rb @@ -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