Sha256: f254ee9cd10d91fbd184db59957525a0d5e234a3152475934f5d0ad241234749
Contents?: true
Size: 856 Bytes
Versions: 9
Compression:
Stored size: 856 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 "Settings" end # Regression test for #535 it "can see a tax rate in the list if the tax category has been deleted" do tax_rate.tax_category.update_column(:deleted_at, Time.now) expect { click_link "Tax Rates" }.not_to raise_error within(:xpath, all("table tbody td")[2].path) do expect(page).to have_content("N/A") end end # Regression test for #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
9 entries across 9 versions & 1 rubygems