-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[W-7879842] Update httparty and rspec versions (#51)
- Loading branch information
Jared Pearson
authored
Aug 19, 2020
1 parent
d1f2859
commit 8de6325
Showing
17 changed files
with
90 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,20 +8,20 @@ def create_client | |
|
||
describe "client" do | ||
after do | ||
@client.email.should == "[email protected]" | ||
@client.password.should == "password" | ||
@client.user_key.should == "user_key" | ||
@client.format.should == "simple" | ||
expect(@client.email).to eq("[email protected]") | ||
expect(@client.password).to eq("password") | ||
expect(@client.user_key).to eq("user_key") | ||
expect(@client.format).to eq("simple") | ||
end | ||
|
||
it "should set variables without version" do | ||
@client = Pardot::Client.new "[email protected]", "password", "user_key" | ||
@client.version.should == 3 | ||
expect(@client.version).to eq(3) | ||
end | ||
|
||
it "should set variables with version" do | ||
@client = Pardot::Client.new "[email protected]", "password", "user_key", 4 | ||
@client.version.should == 4 | ||
expect(@client.version).to eq(4) | ||
end | ||
|
||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,11 @@ def sample_results | |
it "should take in some arguments" do | ||
fake_get "/api/opportunity/version/3/do/query?id_greater_than=200&format=simple", sample_results | ||
|
||
@client.opportunities.query(:id_greater_than => 200).should == {"total_results" => 2, | ||
expect(@client.opportunities.query(:id_greater_than => 200)).to eq({"total_results" => 2, | ||
"opportunity"=>[ | ||
{"type"=>"Great", "name"=>"Jim"}, | ||
{"type"=>"Good", "name"=>"Sue"} | ||
]} | ||
]}) | ||
assert_authorization_header | ||
end | ||
|
||
|
@@ -56,7 +56,7 @@ def sample_results | |
it "should return the prospect" do | ||
fake_post "/api/opportunity/version/3/do/create/prospect_email/[email protected]?type=Good&format=simple&name=Jim", sample_results | ||
|
||
@client.opportunities.create_by_email("[email protected]", :name => "Jim", :type => "Good").should == {"name"=>"Jim", "type"=>"Good"} | ||
expect(@client.opportunities.create_by_email("[email protected]", :name => "Jim", :type => "Good")).to eq({"name"=>"Jim", "type"=>"Good"}) | ||
|
||
assert_authorization_header | ||
end | ||
|
Oops, something went wrong.