... | @@ -23,9 +23,7 @@ test "should allow director to send order to production" do |
... | @@ -23,9 +23,7 @@ test "should allow director to send order to production" do |
|
sign_in users(:user_director)
|
|
sign_in users(:user_director)
|
|
|
|
|
|
page.visit('/orders')
|
|
page.visit('/orders')
|
|
order_row_xpath = page.first(:xpath,
|
|
order_row_xpath = page.first(:xpath, ORDERS_LIST_ROWS, text: 'Com Diretoria').path
|
|
ORDERS_LIST_ROWS,
|
|
|
|
text: 'Com Diretoria').path
|
|
|
|
|
|
|
|
Order.any_instance.stubs(:send_to_gogrids).returns({ url: "http://fakegrids.gocase.com.br/path/to/file.zip" })
|
|
Order.any_instance.stubs(:send_to_gogrids).returns({ url: "http://fakegrids.gocase.com.br/path/to/file.zip" })
|
|
|
|
|
... | | ... | |