mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Convert specs to tests
This commit is contained in:
parent
e0d3e14df4
commit
6faf0c3dd7
4 changed files with 28 additions and 30 deletions
|
@ -6,14 +6,6 @@ describe BankStatement do
|
|||
@bank_statement = BankStatement.new
|
||||
end
|
||||
|
||||
it 'should not be valid' do
|
||||
@bank_statement.valid?
|
||||
@bank_statement.errors.full_messages.should match_array([
|
||||
"Bank code is missing",
|
||||
"Iban is missing"
|
||||
])
|
||||
end
|
||||
|
||||
it 'should not have any versions' do
|
||||
@bank_statement.versions.should == []
|
||||
end
|
||||
|
@ -24,17 +16,6 @@ describe BankStatement do
|
|||
@bank_statement = create(:bank_statement)
|
||||
end
|
||||
|
||||
it 'should be valid' do
|
||||
@bank_statement.valid?
|
||||
@bank_statement.errors.full_messages.should match_array([])
|
||||
end
|
||||
|
||||
it 'should be valid twice' do
|
||||
@bank_statement = create(:bank_statement)
|
||||
@bank_statement.valid?
|
||||
@bank_statement.errors.full_messages.should match_array([])
|
||||
end
|
||||
|
||||
it 'should not bind transactions with invalid match data' do
|
||||
r = create(:registrar, reference_no: '1234')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue