Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Commit

Permalink
Add status field to info query since it is used in sync rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyj committed Oct 13, 2016
1 parent 8a271c3 commit 1410b2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/spree/chimpy/interface/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def info(email)
#maximum of 50 emails allowed to be passed in
begin
response = api_member_call(email)
.retrieve(params: { "fields" => "email_address,merge_fields"})
.retrieve(params: { "fields" => "email_address,merge_fields,status"})

response = response.symbolize_keys
response.merge(:email => response[:email_address])
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/list_interface_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
context "member info" do
it "find when no errors" do
expect(member_api).to receive(:retrieve).with(
{ params: { "fields" => "email_address,merge_fields" } }
{ params: { "fields" => "email_address,merge_fields,status" } }
).and_return(info_response)
expect(interface.info(email)).to include(
email_address: email,
Expand All @@ -83,7 +83,7 @@
end
it "adds legacy field email for backwards compatibility" do
expect(member_api).to receive(:retrieve).with(
{ params: { "fields" => "email_address,merge_fields" } }
{ params: { "fields" => "email_address,merge_fields,status" } }
).and_return(info_response)
expect(interface.info(email)).to include(email: email)
end
Expand Down

0 comments on commit 1410b2a

Please sign in to comment.