mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
refactor specs
This commit is contained in:
parent
7f93cf6220
commit
cebb06269b
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ describe RepositoryActions::Duplicate do
|
|||
|
||||
it 'generates an exact copy of the row with custom column values' do
|
||||
described_class.new(user, repository, [@rows_ids.first]).call
|
||||
duplicated_row = repository.repository_rows.reload.last
|
||||
duplicated_row = repository.repository_rows.order('created_at ASC').last
|
||||
expect(duplicated_row.name).to eq 'row (0) (1)'
|
||||
duplicated_row.repository_cells.each do |cell|
|
||||
if cell.value_type == 'RepositoryListValue'
|
||||
|
|
Loading…
Reference in a new issue