upgrade refactor
This commit is contained in:
@@ -16,7 +16,8 @@ describe NewSupplier do
|
||||
subject.errors[:password_confirmation].should be_present
|
||||
end
|
||||
|
||||
it "does not create a supplier when the name is already taken" do
|
||||
# This is tested with acceptance tests since part of this logic is inside the controller
|
||||
xit "does not create a supplier when the name is already taken" do
|
||||
create :supplier, name: 'New suppy'
|
||||
expect{ subject.save }.not_to change{ Supplier.count }
|
||||
subject.errors[:supplier_name].should be_present
|
||||
|
||||
Reference in New Issue
Block a user