Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Given(/^I am logged in as a salesman assigned to "(.*?)", with the following products:$/) do |client, table|
  2. salesman = Support::Salesman.find_or_create
  3. client = Support::Client.new(client)
  4. Support::Salesman.assign_client(client)
  5. Support::Product.assign_products(salesman, table.hashes)
  6. LoginPage.visit.login(salesman)
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement