index.atom.builder_spec.rb 349 Bytes
describe "problems/index.atom.builder", type: 'view' do
  it 'display problem message' do
    app = App.new(new_record: false)
    allow(view).to receive(:problems).and_return([Problem.new(
      message: 'foo',
      new_record: false, app: app), Problem.new(new_record: false, app: app)])
    render
    expect(rendered).to match('foo')
  end
end