17 lines
396 B
Ruby
17 lines
396 B
Ruby
step 'visit the supplier sign in path' do
|
|
visit '/suppliers/sign_in'
|
|
end
|
|
|
|
step "I visit the supplier root path" do
|
|
visit '/supplier' unless page.current_path == '/supplier'
|
|
end
|
|
|
|
step "I visit the supplier section path" do
|
|
visit "/supplier/sections/#{@section.id}"
|
|
end
|
|
|
|
|
|
step "I should be redirected to the supplier settings page" do
|
|
page.current_path.should == supplier_settings_path
|
|
end
|