@@ -13,15 +13,6 @@ def with_instance_variables
13
13
render :file => File . join ( File . dirname ( __FILE__ ) , '../../fixtures/test/render_file_with_ivar' )
14
14
end
15
15
16
- def without_file_key
17
- render File . join ( File . dirname ( __FILE__ ) , *%w[ .. .. fixtures test hello_world ] )
18
- end
19
-
20
- def without_file_key_with_instance_variable
21
- @secret = 'in the sauce'
22
- render File . join ( File . dirname ( __FILE__ ) , '../../fixtures/test/render_file_with_ivar' )
23
- end
24
-
25
16
def relative_path
26
17
@secret = 'in the sauce'
27
18
render :file => '../../fixtures/test/render_file_with_ivar'
@@ -41,11 +32,6 @@ def with_locals
41
32
path = File . join ( File . dirname ( __FILE__ ) , '../../fixtures/test/render_file_with_locals' )
42
33
render :file => path , :locals => { :secret => 'in the sauce' }
43
34
end
44
-
45
- def without_file_key_with_locals
46
- path = FIXTURES . join ( 'test/render_file_with_locals' ) . to_s
47
- render path , :locals => { :secret => 'in the sauce' }
48
- end
49
35
end
50
36
51
37
class TestBasic < Rack ::TestCase
@@ -61,16 +47,6 @@ class TestBasic < Rack::TestCase
61
47
assert_response "The secret is in the sauce\n "
62
48
end
63
49
64
- test "rendering path without specifying the :file key" do
65
- get :without_file_key
66
- assert_response "Hello world!"
67
- end
68
-
69
- test "rendering path without specifying the :file key with ivar" do
70
- get :without_file_key_with_instance_variable
71
- assert_response "The secret is in the sauce\n "
72
- end
73
-
74
50
test "rendering a relative path" do
75
51
get :relative_path
76
52
assert_response "The secret is in the sauce\n "
@@ -90,10 +66,5 @@ class TestBasic < Rack::TestCase
90
66
get :with_locals
91
67
assert_response "The secret is in the sauce\n "
92
68
end
93
-
94
- test "rendering path without specifying the :file key with locals" do
95
- get :without_file_key_with_locals
96
- assert_response "The secret is in the sauce\n "
97
- end
98
69
end
99
70
end
0 commit comments