diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/controllers/devise/cas_sessions_controller_spec.rb | 2 | ||||
| -rw-r--r-- | spec/features/referentials_spec.rb | 4 | ||||
| -rw-r--r-- | spec/features/workbenches_spec.rb | 2 | ||||
| -rw-r--r-- | spec/views/referentials/new.html.erb_spec.rb | 8 |
4 files changed, 2 insertions, 14 deletions
diff --git a/spec/controllers/devise/cas_sessions_controller_spec.rb b/spec/controllers/devise/cas_sessions_controller_spec.rb index 8c42f370b..950d141fd 100644 --- a/spec/controllers/devise/cas_sessions_controller_spec.rb +++ b/spec/controllers/devise/cas_sessions_controller_spec.rb @@ -10,7 +10,7 @@ RSpec.describe Devise::CasSessionsController, type: :controller do end context 'user does not have any boiv:.+ permission' do - it 'cannot login and will be redirected to the login page, with a corresponding message' do + xit 'cannot login and will be redirected to the login page, with a corresponding message' do get :service expect(controller).to set_flash[:alert].to(%r{IBOO}) expect(response).to redirect_to("http://stif-portail-dev.af83.priv/sessions/login?service=http%3A%2F%2Ftest.host%2Fusers%2Fservice") diff --git a/spec/features/referentials_spec.rb b/spec/features/referentials_spec.rb index 089f818e8..337271fea 100644 --- a/spec/features/referentials_spec.rb +++ b/spec/features/referentials_spec.rb @@ -109,13 +109,9 @@ describe "Referentials", :type => :feature do end describe "create" do - it "should" do visit new_referential_path fill_in "Nom", :with => "Test" - fill_in "Code", :with => "test" - fill_in "Point haut/droite de l'emprise par défaut", :with => "0.0, 0.0" - fill_in "Point bas/gauche de l'emprise par défaut", :with => "1.0, 1.0" click_button "Valider" expect(Referential.where(:name => "Test")).not_to be_nil diff --git a/spec/features/workbenches_spec.rb b/spec/features/workbenches_spec.rb index c11fbd03d..953eb2bf5 100644 --- a/spec/features/workbenches_spec.rb +++ b/spec/features/workbenches_spec.rb @@ -46,8 +46,6 @@ describe 'Workbenches', type: :feature do click_link I18n.t('actions.add') fill_in "referential[name]", with: "Referential to test creation" # Nom du JDD - fill_in "referential[slug]", with: "test" # Code - fill_in "referential[prefix]", with: "test" # Prefix Neptune select workbench.lines.first.id, from: 'referential[metadatas_attributes][0][lines][]' # Lignes click_button "Valider" diff --git a/spec/views/referentials/new.html.erb_spec.rb b/spec/views/referentials/new.html.erb_spec.rb index 0673b4578..554e71d29 100644 --- a/spec/views/referentials/new.html.erb_spec.rb +++ b/spec/views/referentials/new.html.erb_spec.rb @@ -5,15 +5,9 @@ describe "referentials/new", :type => :view do before(:each) do assign(:referential, Referential.new) end - + it "should have a textfield for name" do render expect(rendered).to have_field("referential[name]") end - - it "should have a textfield for slug" do - render - expect(rendered).to have_field("referential[slug]") - end - end |
