Guest User

Untitled

a guest
Feb 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. steps_for(:viewing) do
  2.  
  3. When("$agent requests '/list_views.xml'") do |agent|
  4. get '/list_views.xml'
  5. # This is displaying correctly for both scenarios
  6. puts "<pre>#{response.body}</pre>"
  7. end
  8.  
  9. Then("they should see a list of lists containing '$list_name'") do |list_name|
  10. response.should have_tag('list-views>list-view>name', list_name)
  11. end
  12.  
  13. Then("they should not see a list of lists containing '$list_name'") do |list_name|
  14. response.should_not have_tag('list-views>list-view>name', list_name)
  15. end
  16. end
Add Comment
Please, Sign In to add comment