Is there any way within an RSpec tests, by convention or code, to have rails start before tests run? I’m trying to setup a testing framework for selenium tests that use chrome, and now I’m only hindered by my lack of a running server.
require 'spec_helper'
describe 'The first tab' do
before(:each) do
@driver = Selenium::WebDriver.for :chrome
end
it 'Shows the list' do
@driver.navigate.to 'index.html'
end
end
I’m new to RSpec, so I’m not sure how I would create a suite of tests that all ran while a rails server was running.
Just run
rails serverand kill the process went tests complete.