aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views/time_tables/index.html.erb_spec.rb
blob: cea172ce9695730ffe1ee5defb6237006af4fcdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
require 'spec_helper'

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

  assign_referential
  let!(:time_tables) { assign :time_tables, Array.new(2){ create(:time_table) }.paginate }
  let!(:search) { assign :q, Ransack::Search.new(Chouette::TimeTable) }

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

  # it "should render a show link for each group" do
  #   render
  #   time_tables.each do |time_table|
  #     expect(rendered).to have_selector("a[href='#{view.referential_time_table_path(referential, time_table)}']", :text => time_table.comment)
  #   end
  # end
  #
  # it "should render a link to create a new group" do
  #   render
  #   expect(rendered).to have_selector("a[href='#{new_referential_time_table_path(referential)}']")
  # end

end