mirror of
https://github.com/internetee/registry.git
synced 2025-07-14 23:15:14 +02:00
Silence invoice pdf tests
This commit is contained in:
parent
c89bdeb597
commit
d9ca931c97
6 changed files with 39 additions and 36 deletions
|
@ -24,9 +24,9 @@ describe Invoice do
|
|||
])
|
||||
end
|
||||
|
||||
# it 'should not have any versions' do
|
||||
# @invoice.versions.should == []
|
||||
# end
|
||||
it 'should not have any versions' do
|
||||
@invoice.versions.should == []
|
||||
end
|
||||
end
|
||||
|
||||
context 'with valid attributes' do
|
||||
|
@ -76,14 +76,14 @@ describe Invoice do
|
|||
Invoice.where(cancelled_at: nil).count.should == 1
|
||||
end
|
||||
|
||||
# it 'should have one version' do
|
||||
# with_versioning do
|
||||
# @invoice.versions.should == []
|
||||
# @invoice.body = 'New body'
|
||||
# @invoice.save
|
||||
# @invoice.errors.full_messages.should match_array([])
|
||||
# @invoice.versions.size.should == 1
|
||||
# end
|
||||
# end
|
||||
it 'should have one version' do
|
||||
with_versioning do
|
||||
@invoice.versions.should == []
|
||||
@invoice.buyer_name = 'New name'
|
||||
@invoice.save
|
||||
@invoice.errors.full_messages.should match_array([])
|
||||
@invoice.versions.size.should == 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue