|
|
@ -52,7 +52,7 @@ describe MeetingsController, type: :controller do |
|
|
|
describe 'show' do |
|
|
|
describe 'show' do |
|
|
|
before(:each) do |
|
|
|
before(:each) do |
|
|
|
@m = mock_model(Meeting) |
|
|
|
@m = mock_model(Meeting) |
|
|
|
allow(Meeting).to receive(:find).and_return(@m) |
|
|
|
allow(Meeting).to receive_message_chain(:includes, :find).and_return(@m) |
|
|
|
allow(@m).to receive(:project).and_return(@p) |
|
|
|
allow(@m).to receive(:project).and_return(@p) |
|
|
|
allow(allow(@m).to receive(:agenda)).to receive(:present?).and_return(false) |
|
|
|
allow(allow(@m).to receive(:agenda)).to receive(:present?).and_return(false) |
|
|
|
end |
|
|
|
end |
|
|
@ -84,7 +84,7 @@ describe MeetingsController, type: :controller do |
|
|
|
describe 'edit' do |
|
|
|
describe 'edit' do |
|
|
|
before(:each) do |
|
|
|
before(:each) do |
|
|
|
@m = mock_model(Meeting) |
|
|
|
@m = mock_model(Meeting) |
|
|
|
allow(Meeting).to receive(:find).and_return(@m) |
|
|
|
allow(Meeting).to receive_message_chain(:includes, :find).and_return(@m) |
|
|
|
allow(@m).to receive(:project).and_return(@p) |
|
|
|
allow(@m).to receive(:project).and_return(@p) |
|
|
|
end |
|
|
|
end |
|
|
|
describe 'html' do |
|
|
|
describe 'html' do |
|
|
|