spec/pardot/objects/prospects_spec.rb in ruby-pardot-1.3.1 vs spec/pardot/objects/prospects_spec.rb in ruby-pardot-1.3.2

- old
+ new

@@ -26,15 +26,15 @@ end it "should take in some arguments" do fake_get "/api/prospect/version/3/do/query?assigned=true&format=simple", sample_results - @client.prospects.query(:assigned => true).should == {"total_results" => 2, + expect(@client.prospects.query(:assigned => true)).to eq({"total_results" => 2, "prospect"=>[ {"last_name"=>"Smith", "first_name"=>"Jim"}, {"last_name"=>"Green", "first_name"=>"Sue"} - ]} + ]}) assert_authorization_header end end @@ -49,14 +49,14 @@ </prospect> </rsp>) end it "should return the prospect" do - 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"} + fake_post "/api/prospect/version/3/do/create/email/user%40test.com?first_name=Jim&format=simple", sample_results + + expect(@client.prospects.create("user@test.com", :first_name => "Jim")).to eq({"last_name"=>"Smith", "first_name"=>"Jim"}) assert_authorization_header end end -end \ No newline at end of file +end