module ThoughtBot::Shoulda::Controller::HTML::ClassMethods
def make_show_html_tests(res)
def make_show_html_tests(res) context "on GET to #{controller_name_from_class}#show" do setup do record = get_existing_record(res) parent_params = make_parent_params(res, record) get :show, parent_params.merge({ res.identifier => record.to_param }) end if res.denied.actions.include?(:show) should_not_assign_to res.object should_redirect_to res.denied.redirect should_set_the_flash_to res.denied.flash else should_assign_to res.object should_respond_with :success should_render_template :show should_not_set_the_flash end end end