Sha256: 25f8807c952de89f87c47120f3e7546874e6e818374b1e137892e3d06a8fd6a5
Contents?: true
Size: 591 Bytes
Versions: 5
Compression:
Stored size: 591 Bytes
Contents
require 'spec_helper' describe 'Admin - Products', js: true do context 'as Admin' do xit 'should be able to change supplier' do s1 = create(:supplier) s2 = create(:supplier) product = create :product product.add_supplier! s1 login_user create(:admin_user) visit spree.admin_product_path(product) select2 s2.name, from: 'Supplier' click_button 'Update' expect(page).to have_content("Product \"#{product.name}\" has been successfully updated!") expect(product.reload.suppliers.first.id).to eql(s2.id) end end end
Version data entries
5 entries across 5 versions & 2 rubygems