m35pwa
Last Updated: February 25, 2016
·
5.177K
· errm

render :nothing => true

Spec it like this:

describe "#show" do
  it "renders nothing"
    get :show
    response.body.should be_blank
  end
end

In the controller:

def show
  render :nothing => true
end

1 Response
Add your response

22563
expect(response.body).to be_blank
over 1 year ago ·