Sha256: a268c839607107b488476f53e563f74f994e1e3632be7a2863e7d610060e48ad
Contents?: true
Size: 810 Bytes
Versions: 6
Compression:
Stored size: 810 Bytes
Contents
require 'spec_helper' module Spree module Admin describe TaxCategoriesController, type: :controller do stub_authorization! describe 'GET #index' do subject { spree_get :index } it 'should be successful' do expect(subject).to be_success end end describe 'PUT #update' do let(:tax_category) { create :tax_category } subject { spree_put :update, {id: tax_category.id, tax_category: { name: 'Foo', tax_code: 'Bar' }}} it 'should redirect' do expect(subject).to be_redirect end it 'should update' do subject tax_category.reload expect(tax_category.name).to eq('Foo') expect(tax_category.tax_code).to eq('Bar') end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems