diff options
| author | jpl | 2017-02-10 14:51:01 +0100 |
|---|---|---|
| committer | jpl | 2017-02-10 14:51:01 +0100 |
| commit | cc6744ecf9cf940417fabfaa34b0a857196352ae (patch) | |
| tree | 879f73df8b8afae8895a41401f8e575e63023970 /spec | |
| parent | ce0248b0a9773b70cdcb3ca681a74f0c353cec43 (diff) | |
| download | chouette-core-cc6744ecf9cf940417fabfaa34b0a857196352ae.tar.bz2 | |
Refs #2482: fixing :show_all feature according to new specs (feat. Luc Donnet)
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/features/workbenches_spec.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/features/workbenches_spec.rb b/spec/features/workbenches_spec.rb index 262991353..9e636341d 100644 --- a/spec/features/workbenches_spec.rb +++ b/spec/features/workbenches_spec.rb @@ -10,7 +10,7 @@ describe 'Workbenches', type: :feature do let!(:line) { create :line, line_referential: line_referential } let!(:referential_metadatas) { Array.new(2) { |i| create :referential_metadata, lines: [line], referential: referentials[i] } } - let!(:ready_referential) { create(:referential, workbench: workbenches.first, ready: true) } + let!(:ready_referential) { create(:referential, workbench: workbenches.first, metadatas: referential_metadatas, ready: true) } let!(:unready_referential) { create(:referential, workbench: workbenches.first) } describe 'show' do @@ -19,12 +19,5 @@ describe 'Workbenches', type: :feature do expect(page).to have_content(ready_referential.name) expect(page).not_to have_content(unready_referential.name) end - - it 'shows all ready referentials if that option is chosen' do - visit workbench_path(workbenches.first) - click_link I18n.t('referentials.show.show_all_referentials') - expect(page).to have_content(referentials.first.name) - expect(page).to have_content(referentials.last.name) - end end end |
