Sha256: ca92926b433a38664c8ac7a875dca23ed1b8a065a33a93251e09b4ae748767e8
Contents?: true
Size: 900 Bytes
Versions: 47
Compression:
Stored size: 900 Bytes
Contents
# frozen_string_literal: true 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
47 entries across 47 versions & 2 rubygems