Skip to content

Commit

Permalink
Refactored step
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed May 18, 2010
1 parent 07f308c commit b7b0ca9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion features/step_definitions/lighthouse_integration_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
Then %{submit the form}
end

Given /^there are parked tickets on the system$/ do
LightHouse.stub!(:all).and_return [mock_model(Lighthouse).as_null_object]
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 Expand Up @@ -61,4 +65,10 @@

Then /^one item should be saved as parked items$/ do
LightHouse.first.ticket_id.should_not eql 9
end
end

Then /^a list of parked ticket should be displayed$/ do
response.should have_selector :ul, attribute = {:id => "resource_list"} do |list|
list.should have_selector :li
end
end

0 comments on commit b7b0ca9

Please sign in to comment.