aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views/time_tables/show.html.erb_spec.rb
blob: 100c74b90216921f7b990eb85f42b6e3e733ccac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'spec_helper'

describe "/time_tables/show", :type => :view do

  assign_referential
  let!(:time_table) do
    assign(
      :time_table,
      create(:time_table).decorate(context: {
        referential: referential
      })
    )
  end
  let!(:year) { assign(:year, Date.today.cwyear) }
  let!(:time_table_combination) {assign(:time_table_combination, TimeTableCombination.new)}

  before do
    allow(view).to receive_messages(current_organisation: referential.organisation)
  end
end