Skip to content

Commit

Permalink
Added steps and implementaton for retrieving a lghthouse ticket.
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed May 14, 2010
1 parent bc7f652 commit 47f970a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions features/plain/lighthouse_integration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ Feature: Lighthouse integration
Scenario: We should be able to use the lighthouse resource when it has been stored
Given we have setup the lighthouse resource
And I visit the parking page
When I fill in the "parking_tag" with "feature"
Then I should be sent to the "tickets" page
When I fill in "parking_tag" with "feature"
And submit the form
And there should be a list of tickets found

Expand Down
7 changes: 7 additions & 0 deletions features/step_definitions/lighthouse_integration_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
visit new_parking_path
end

Given /^we have setup the lighthouse resource$/ do
Given %{we visit the new parking page}
When %{I fill in "resource_name" with "baphled"}
And %{I fill in "resource_project_id" with "50164"}
Then %{submit the form}
end

When /^we specify the ticket type "([^\"]*)"$/ do |ticket_parameters|
@lighthouse_tickets = Lighthouse::Ticket.find(:all, :params => { :project_id => @project_number, :q => "state:open tagged:feature" })
end
Expand Down

0 comments on commit 47f970a

Please sign in to comment.