diff options
| author | Teddy Wing | 2017-06-19 11:03:34 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-06-19 11:03:34 +0200 |
| commit | a6b84e751068da4cce61aec75690a2d1ea295b13 (patch) | |
| tree | 1ccfbf2bbdc9065cf75b1017881cf6fecd9feb0b /spec | |
| parent | 88f1d1c6c4dd82404c124ec15ab56513289c2210 (diff) | |
| parent | 9ef3d205aa091d509455b3607d5ecc74431c6196 (diff) | |
| download | chouette-core-a6b84e751068da4cce61aec75690a2d1ea295b13.tar.bz2 | |
Merge remote-tracking branch 'origin/master' into 3479-refactor-table_builder-helper
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 |
