Skip to content

Commit

Permalink
added some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rnickles committed Mar 6, 2024
1 parent 53dd318 commit 6f71dc2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion features/step_definitions/option_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
expect(Option.send(opt.tr(' ','').underscore)).to eq(val)
end

#####
# Step defintions for testing the recurring donation feature admin view
#####

When /I set allow recurring donations to "(.*)"/ do |value|
drop_down = page.find(:css, "#allow_recurring_donations_select")
drop_down.select(value)
Expand All @@ -54,8 +57,11 @@
# How to check what option the radio button currently has selected?
radio_button = page.find(:css, '#donation_type_radio')
end


#####
# Step defintions for testing the recurring donation feature user view
#####

Given /admin has allowed recurring donations/ do
Option.first.update_attributes!(:allow_recurring_donations => true)
end
Expand Down

0 comments on commit 6f71dc2

Please sign in to comment.