From cdd78f1b94100697bb2300571798dca2a7e9f266 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Sat, 9 Jul 2016 06:20:42 -0500 Subject: [PATCH] jamblaster bootstrap --- web/spec/requests/artifacts_api_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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