2017-11-12 13:27:10 +01:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
2019-06-28 18:50:50 +02:00
|
|
|
RSpec.describe 'greendays/index', pending: true do
|
2017-11-12 13:27:10 +01:00
|
|
|
before(:each) do
|
|
|
|
|
assign(:greendays, [
|
|
|
|
|
Greenday.create!(
|
|
|
|
|
title: 'Title',
|
|
|
|
|
address: 'Address',
|
|
|
|
|
description: 'MyText'
|
|
|
|
|
),
|
|
|
|
|
Greenday.create!(
|
|
|
|
|
title: 'Title',
|
|
|
|
|
address: 'Address',
|
|
|
|
|
description: 'MyText'
|
|
|
|
|
)
|
|
|
|
|
])
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'renders a list of greendays' do
|
|
|
|
|
render
|
|
|
|
|
assert_select 'h2', text: 'Title'.to_s, count: 2
|
|
|
|
|
assert_select "address", :text => "Address".to_s, count: 2
|
|
|
|
|
assert_select "p", :text => "MyText".to_s, count: 2
|
|
|
|
|
end
|
|
|
|
|
end
|