diff options
| author | Luc Donnet | 2012-10-11 11:28:06 +0200 |
|---|---|---|
| committer | Luc Donnet | 2012-10-11 11:28:06 +0200 |
| commit | 2bde64bde90f37bce9c5aba39575386eb56f1e60 (patch) | |
| tree | 9e21a1791ea1c52a0dee7972f1d739a4d3865cc3 | |
| parent | 0f61b9f0de549290b9ebf4f5cc2d00b63c2fd02e (diff) | |
| download | chouette-core-2bde64bde90f37bce9c5aba39575386eb56f1e60.tar.bz2 | |
Fix spec bug for year
| -rw-r--r-- | app/views/time_tables/show.html.erb | 4 | ||||
| -rw-r--r-- | spec/views/time_tables/show.html.erb_spec.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/time_tables/show.html.erb b/app/views/time_tables/show.html.erb index 45763fad5..d5034c6b2 100644 --- a/app/views/time_tables/show.html.erb +++ b/app/views/time_tables/show.html.erb @@ -64,9 +64,9 @@ </p> <div class="year_choice"> - <span class="previous"> <%= link_to("<", :year => (@year - 1) ) %> </span> + <span class="previous"> <%= link_to("<", referential_time_table_path(@referential, @time_table, :year => (@year - 1)) ) %> </span> <span class="year"> <%= "#{@year}" %> </span> - <span class="next"> <%= link_to(">", :year => (@year + 1) ) %> </span> + <span class="next"> <%= link_to(">", referential_time_table_path(@referential, @time_table, :year => (@year + 1)) ) %> </span> </div> <div class="calendar_helper"> <%= cal = "" diff --git a/spec/views/time_tables/show.html.erb_spec.rb b/spec/views/time_tables/show.html.erb_spec.rb index 1bf3d1112..9d0527c5d 100644 --- a/spec/views/time_tables/show.html.erb_spec.rb +++ b/spec/views/time_tables/show.html.erb_spec.rb @@ -6,7 +6,7 @@ describe "/time_tables/show" do let!(:time_table) { assign(:time_table, create(:time_table)) } let!(:year) { assign(:year, Date.today.cwyear) } - it "should render h2 with the time_table comment" do + it "should render h2 with the time_table comment" do render rendered.should have_selector("h2", :text => Regexp.new(time_table.comment)) end |
