require 'hyperloop'

describe Hyperloop::Application do
  before :all do
    @root = 'spec/fixtures/simple/'
  end

  it 'finds the index view' do
    app = Hyperloop::Application.new(@root)
    expect(app.views).to eql(['index.html'])
  end
end

require 'hyperloop'

describe Hyperloop::Application do
  before :each do
    @root = 'spec/fixtures/simple/'
    @app  = Hyperloop::Application.new(@root)
  end

  it 'finds the index view' do
    expect(@app.views).to eql(['index.html'])
  end
end

Move app spec setup from before :all to :each
Move app spec setup from before :all to :each
