aboutsummaryrefslogblamecommitdiffstats
path: root/spec/views/organisations/show.html.erb_spec.rb
blob: 2974e873cbfd08ccff9d673b4f0a35e199f1e73d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                   
require 'rails_helper'

RSpec.describe "organisations/show", type: :view do
  before(:each) do
    assign(:organisation, Organisation.create!(
      name: "Name"
    ))
  end

  it "renders attributes in <p>" do
    render
    expect(rendered).to match(/Name/)
  end
end