Skip to content

Commit

Permalink
More missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerry Gleason committed Dec 20, 2012
1 parent efb0b76 commit 92da648
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 3 additions & 4 deletions features/hello_wagn.feature
Expand Up @@ -12,12 +12,11 @@ Feature: Seeing a card
Then I should see "Home" Then I should see "Home"
And I should see "Joe User" And I should see "Joe User"
And I should see "Sign out" And I should see "Sign out"
And In the main card header I should see "≡" Then In the main card header I should see a link with class "ui-icon-gear"
#this is the unicode version of the html entity to open the menu
Then In the main card header I click "close Home" Then In the main card header I click "close Home"
And In the main card header I should not see "≡" Then In the main card header I should not see a link with class "ui-icon-gear"
Then In the main card header I click "open Home" Then In the main card header I click "open Home"
And In the main card header I should see "≡" Then In the main card header I should see a link with class "ui-icon-gear"


Scenario: Create a Card Scenario: Create a Card
Given I log in as Joe User Given I log in as Joe User
Expand Down
8 changes: 8 additions & 0 deletions features/step_definitions/wagn_steps.rb
Expand Up @@ -170,6 +170,14 @@ def logged_in_as(username)
end end
end end


Then /^In (.*) I should (not )?see a ([^\"]*) with class "([^\"]*)"$/ do |selection, neg, element, selector|
# checks for existence of a element with a class in a selection context
element = 'a' if element == 'link'
within scope_of(selection) do
page.send ( neg ? :should_not : :should ), have_css( [ element, selector ] * '.' )
end
end

Then /^the "([^"]*)" field should contain "([^"]*)"$/ do |field, value| Then /^the "([^"]*)" field should contain "([^"]*)"$/ do |field, value|
field_labeled(field).value.should =~ /#{value}/ field_labeled(field).value.should =~ /#{value}/
end end
Expand Down

0 comments on commit 92da648

Please sign in to comment.