Skip to content

Commit 535405a

Browse files
author
Jake Boxer
committed
Use prepare_fixture in all app specs
1 parent 33fe9dd commit 535405a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/application_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
describe "with subdirectories" do
4444
before :each do
45-
@app = Hyperloop::Application.new("spec/fixtures/subdirectories/")
45+
@app = Hyperloop::Application.new(prepare_fixture(:subdirectories))
4646
@request = Rack::MockRequest.new(@app)
4747
end
4848

@@ -63,7 +63,7 @@
6363

6464
describe "with ERB" do
6565
before :each do
66-
@app = Hyperloop::Application.new("spec/fixtures/erb/")
66+
@app = Hyperloop::Application.new(prepare_fixture(:erb))
6767
@request = Rack::MockRequest.new(@app)
6868
end
6969

@@ -77,7 +77,7 @@
7777

7878
describe "with a layout" do
7979
before :each do
80-
@app = Hyperloop::Application.new("spec/fixtures/layouts/")
80+
@app = Hyperloop::Application.new(prepare_fixture(:layouts))
8181
@request = Rack::MockRequest.new(@app)
8282
end
8383

@@ -100,7 +100,7 @@
100100

101101
describe "with assets" do
102102
before :each do
103-
@app = Hyperloop::Application.new("spec/fixtures/assets/")
103+
@app = Hyperloop::Application.new(prepare_fixture(:assets))
104104
@request = Rack::MockRequest.new(@app)
105105
end
106106

0 commit comments

Comments
 (0)