We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c34ef8 commit 18de2d5Copy full SHA for 18de2d5
spec/controllers/opportunity_controlller_spec.rb
@@ -2,10 +2,15 @@
2
3
RSpec.describe OpportunitiesController, type: :controller do
4
5
- it 'render #index' do
6
- get :index
7
- expect(response.status).to eq(200)
8
- expect(response).to render_template(['opportunities/index', 'layouts/jobs'])
9
- end
+ describe "GET index" do
+ it "should respond with 200" do
+ get :index
+ expect(response.status).to eq(200)
+ end
10
11
+ it "should render the opportunities index template with jobs layout" do
12
13
+ expect(response).to render_template(['opportunities/index', 'layouts/jobs'])
14
15
16
end
0 commit comments