spec/pardot/objects/prospects_spec.rb in ruby-pardot-1.2.0 vs spec/pardot/objects/prospects_spec.rb in ruby-pardot-1.3.0
- old
+ new
@@ -24,17 +24,18 @@
</result>
</rsp>)
end
it "should take in some arguments" do
- fake_get "/api/prospect/version/3/do/query?assigned=true&format=simple&user_key=bar&api_key=my_api_key", sample_results
+ fake_get "/api/prospect/version/3/do/query?assigned=true&format=simple", sample_results
@client.prospects.query(:assigned => true).should == {"total_results" => 2,
"prospect"=>[
{"last_name"=>"Smith", "first_name"=>"Jim"},
{"last_name"=>"Green", "first_name"=>"Sue"}
]}
+ assert_authorization_header
end
end
describe "create" do
@@ -48,13 +49,13 @@
</prospect>
</rsp>)
end
it "should return the prospect" do
- fake_post "/api/prospect/version/3/do/create/email/user@test.com?api_key=my_api_key&user_key=bar&format=simple&first_name=Jim", sample_results
+ fake_post "/api/prospect/version/3/do/create/email/user@test.com?format=simple&first_name=Jim", sample_results
@client.prospects.create("user@test.com", :first_name => "Jim").should == {"last_name"=>"Smith", "first_name"=>"Jim"}
-
+ assert_authorization_header
end
end
end
\ No newline at end of file