Sha256: 066abfb2afc85db74ea36bbb330fdb639f899ea207950718ecda62795412cdc0
Contents?: true
Size: 432 Bytes
Versions: 5
Compression:
Stored size: 432 Bytes
Contents
require 'spec_helper' module Spree describe Classification, :type => :model do # Regression test for #3494 it "cannot link the same taxon to the same product more than once" do product = create(:product) taxon = create(:taxon) add_taxon = lambda { product.taxons << taxon } expect(add_taxon).not_to raise_error expect(add_taxon).to raise_error(ActiveRecord::RecordInvalid) end end end
Version data entries
5 entries across 5 versions & 1 rubygems