diff options
| author | Alban Peignier | 2017-12-26 11:15:06 +0100 | 
|---|---|---|
| committer | Alban Peignier | 2017-12-26 11:15:06 +0100 | 
| commit | 9c1b150c4106b9c1773e7c056ca568f1f69d98bc (patch) | |
| tree | 39745a1bbf47ef944f4f363e19a1623d15ed833f | |
| parent | 9fe0ca13d7caba486561f52557c1fa3d2f9f0a52 (diff) | |
| download | chouette-core-9c1b150c4106b9c1773e7c056ca568f1f69d98bc.tar.bz2 | |
Add feature purchase_windows to organisation in PurchaseWindows specs. Refs #5366
| -rw-r--r-- | spec/features/purchase_windows_spec.rb | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/spec/features/purchase_windows_spec.rb b/spec/features/purchase_windows_spec.rb index 8edc85cc6..f797594b7 100644 --- a/spec/features/purchase_windows_spec.rb +++ b/spec/features/purchase_windows_spec.rb @@ -1,6 +1,10 @@  describe "PurchaseWindows", type: :feature do    login_user +  before do +    @user.organisation.update features: %w{purchase_windows} +  end +    describe "#index" do      with_permissions('purchase_windows.create') do        it "allows users to create new purchase windows" do @@ -11,7 +15,7 @@ describe "PurchaseWindows", type: :feature do          click_link(I18n.t('purchase_windows.actions.new'))          fill_in('purchase_window[name]', with: name) -        select('#DD2DAA', from: 'purchase_window[color]') +        # select('#DD2DAA', from: 'purchase_window[color]')          click_link(I18n.t('simple_form.labels.purchase_window.add_a_date_range'))          click_button(I18n.t('actions.submit')) | 
