Using before hook for index route
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -4,19 +4,18 @@ require_relative '../spec_helper'
|
||||
|
||||
RSpec.describe(IndexController) do
|
||||
# / route
|
||||
describe 'Get /' do
|
||||
describe 'GET /' do
|
||||
before { get '/' }
|
||||
|
||||
it 'Dashboard returns 200.' do
|
||||
get '/'
|
||||
expect(last_response).to(be_ok)
|
||||
end
|
||||
|
||||
it "Dashboard contains 'Game Data' on page (nav bar should be loaded)." do
|
||||
get '/'
|
||||
expect(last_response.body).to(include('Game Data'))
|
||||
end
|
||||
|
||||
it "Dashboard contains 'Ruby version' on page (footer should be loaded)." do
|
||||
get '/'
|
||||
expect(last_response.body).to(include('Ruby version'))
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user