Skip to content

Commit 220170a

Browse files
committed
put back removed spec
1 parent 1d95762 commit 220170a

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed
Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
require "rails_helper"
22

33
RSpec.describe VolunteerParameters do
4-
# TODO: Add tests for VolunteerParameters
4+
subject { described_class.new(params) }
55

6-
pending "add some tests for VolunteerParameters"
6+
let(:params) {
7+
ActionController::Parameters.new(
8+
volunteer: ActionController::Parameters.new(
9+
10+
display_name: "Volunteer",
11+
phone_number: "1(401) 827-9485",
12+
date_of_birth: "",
13+
receive_reimbursement_email: "0"
14+
)
15+
)
16+
}
17+
18+
it "returns data" do
19+
expect(subject["email"]).to eq("[email protected]")
20+
expect(subject["display_name"]).to eq("Volunteer")
21+
expect(subject["phone_number"]).to eq("14018279485")
22+
end
723
end

0 commit comments

Comments
 (0)