Sha256: 6b2f6538d14de9b85df5b002849df92d821d24487a9edf5010cb25a3beeb805f
Contents?: true
Size: 869 Bytes
Versions: 17
Compression:
Stored size: 869 Bytes
Contents
require 'spec_helper' describe "Tax Rates", type: :feature do stub_authorization! let!(:tax_rate) { create(:tax_rate, calculator: stub_model(Spree::Calculator)) } before do visit spree.admin_path click_link "Taxes" end # Regression test for https://github.com/spree/spree/issues/535 it "can see a tax rate in the list if the tax category has been deleted" do tax_rate.tax_categories.first.update_column(:deleted_at, Time.current) click_link "Tax Rates" expect(find("table tbody td:nth-child(3)")).to have_content('N/A') end # Regression test for https://github.com/spree/spree/issues/1422 it "can create a new tax rate" do click_link "Tax Rates" click_link "New Tax Rate" fill_in "Rate", with: "0.05" click_button "Create" expect(page).to have_content("Tax Rate has been successfully created!") end end
Version data entries
17 entries across 17 versions & 1 rubygems