Skip to content

Commit

Permalink
Added flash selectors to within steps for cucumber
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Perdomo committed Oct 19, 2010
1 parent 3bb6bb3 commit c15c7e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion within_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
{
'in the title' => 'h1, h2, h3',
'in a button' => 'button, input[type=submit]',
'in the navigation' => 'nav'
'in the navigation' => 'nav',
'in the flash message notice' => 'div#flash div.notice',
'in the flash message error' => 'div#flash div.error'
}.
each do |within, selector|
Then /^(.+) #{within}$/ do |step|
Expand All @@ -11,3 +13,4 @@
end
end
end

0 comments on commit c15c7e4

Please sign in to comment.