aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views/organisations/show.html.erb
blob: 84af3b0444ef864765629508815fc946e5900c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'spec_helper'

describe "/organisations/show" do

  assign_organisation

  let(:organisation) { first_organisation }
  let!(:user) { create :user,  organisation: first_organisation }

  it "should render each User" do
    render
    organisation.users.each do |user|
      expect(rendered).to have_selector("div.user span.name", :text => user.name)
    end
  end

end