aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/workbenches_spec.rb
blob: 1ff39e1be7a1436531e8efdc91783b635318d7e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'spec_helper'

describe 'Workbenches', type: :feature do
  login_user

  let!(:workbench) { create :workbench }
  let!(:ready_referential) { create(:referential, workbench: workbench, ready: true) }
  let!(:unready_referential) { create(:referential, workbench: workbench) }

  describe 'show' do
    it 'shows ready referentials belonging to that workbench' do
      visit workbench_path(workbench)
      expect(page).to have_content(ready_referential.name)
      expect(page).not_to have_content(unready_referential.name)
    end
  end
end