diff options
| author | jpl | 2017-04-04 14:59:34 +0200 |
|---|---|---|
| committer | jpl | 2017-04-04 14:59:41 +0200 |
| commit | 043e813ce3c13be2611d20d5e084f2add79afb59 (patch) | |
| tree | f4c44138d86f89ffa84a461403cf8031f2ccaefc /spec | |
| parent | 4bb68cf4748fae774cad7ef6c1e71e91e72a1af6 (diff) | |
| download | chouette-core-043e813ce3c13be2611d20d5e084f2add79afb59.tar.bz2 | |
Refs #2892: starting integration update on timetables#edit
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/features/time_tables_spec.rb | 4 | ||||
| -rw-r--r-- | spec/views/time_tables/edit.html.erb_spec.rb | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/time_tables_spec.rb b/spec/features/time_tables_spec.rb index 8e0b62c89..975160979 100644 --- a/spec/features/time_tables_spec.rb +++ b/spec/features/time_tables_spec.rb @@ -126,7 +126,7 @@ describe "TimeTables", :type => :feature do click_link "Ajouter un calendrier" fill_in "Nom", :with => "TimeTable 1" fill_in "Identifiant Neptune", :with => "test:Timetable:1" - click_button("Créer calendrier") + click_button("Valider") expect(page).to have_content("TimeTable 1") end end @@ -136,7 +136,7 @@ describe "TimeTables", :type => :feature do visit referential_time_table_path(referential, subject) click_link "Editer ce calendrier" fill_in "Nom", :with => "TimeTable Modified" - click_button("Editer calendrier") + click_button("Valider") expect(page).to have_content("TimeTable Modified") end end diff --git a/spec/views/time_tables/edit.html.erb_spec.rb b/spec/views/time_tables/edit.html.erb_spec.rb index 18c5d6d85..35d360042 100644 --- a/spec/views/time_tables/edit.html.erb_spec.rb +++ b/spec/views/time_tables/edit.html.erb_spec.rb @@ -5,9 +5,9 @@ describe "/time_tables/edit", :type => :view do let!(:time_table) { assign(:time_table, create(:time_table) ) } describe "test" do - it "should render h2 with the group comment" do - render - expect(rendered).to have_selector("h2", :text => Regexp.new(time_table.comment)) + it "should render h1 with the group comment" do + render + expect(rendered).to have_selector("h1", :text => Regexp.new(time_table.comment)) end end |
