|
6 | 6 | describe "simple" do
|
7 | 7 | it "returns correct PDF" do
|
8 | 8 | get :default_render, :format => :pdf
|
9 |
| - expect(response).to be_success |
| 9 | + expect(response).to be_successful |
10 | 10 |
|
11 | 11 | asset_binary = File.open(asset_path("default_render")).read.bytes.to_a
|
12 | 12 | body_binary = response.body.bytes.to_a
|
|
20 | 20 |
|
21 | 21 | it "should render items in a block passed to a helper" do
|
22 | 22 | get :yield_block_in_helper_test, :format => :pdf
|
23 |
| - expect(response).to be_success |
| 23 | + expect(response).to be_successful |
24 | 24 |
|
25 | 25 | asset_binary = File.open(asset_path("yield_block_in_helper_test")).read.bytes.to_a
|
26 | 26 | body_binary = response.body.bytes.to_a
|
|
32 | 32 | describe "dsl" do
|
33 | 33 | it "returns correct PDF" do
|
34 | 34 | get :dsl_render, :format => :pdf
|
35 |
| - expect(response).to be_success |
| 35 | + expect(response).to be_successful |
36 | 36 |
|
37 | 37 | asset_binary = File.open(asset_path("dsl_render")).read.bytes.to_a
|
38 | 38 | body_binary = response.body.bytes.to_a
|
|
43 | 43 | describe "partials" do
|
44 | 44 | it "renders partials" do
|
45 | 45 | get :partial_render, :format => :pdf
|
46 |
| - expect(response).to be_success |
| 46 | + expect(response).to be_successful |
47 | 47 |
|
48 | 48 | asset_binary = File.open(asset_path("partial_render")).read.bytes.to_a
|
49 | 49 | body_binary = response.body.bytes.to_a
|
|
54 | 54 | describe "complex headers" do
|
55 | 55 | it "should return a file with a specified filename" do
|
56 | 56 | get :filename_test, :format => :pdf
|
57 |
| - expect(response).to be_success |
| 57 | + expect(response).to be_successful |
58 | 58 |
|
59 | 59 | expect(response.header["Content-Disposition"]).to eq("attachment;filename=\"fancy_name.pdf\"")
|
60 | 60 | end
|
|
0 commit comments