Skip to content

Commit

Permalink
updated syntax to follow convention in option_steps.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
rnickles committed Mar 6, 2024
1 parent 57a5a48 commit 6a1e9d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/step_definitions/option_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
end

# Step defintions for testing the recurring donation feature
When("I set {string} to {string}") do |setting_name, value|
When /I set "(.*)" to "(.*)"/ do |setting_name, value|
if value == 'Yes'
value = true
elsif value == 'No'
Expand All @@ -46,7 +46,7 @@
option.update_attribute(setting_name.parameterize.underscore.to_sym, value)
end

Then("the radio button to select the default donation type should be {string}") do |value|
Then /the radio button to select the default donation type should be "(.*)"/ do |value|
expect(page).to have_css('#default_donation_type_form_row', visible: value)
end

0 comments on commit 6a1e9d0

Please sign in to comment.