Module: RSpec::Rails::ViewRendering::ClassMethods

Defined in:
lib/apipie/rspec/response_validation_helper.rb

Overview

Augment the RSpec DSL

Instance Method Summary collapse

Instance Method Details

#auto_validate_rendered_viewsObject



147
148
149
150
151
152
153
154
155
# File 'lib/apipie/rspec/response_validation_helper.rb', line 147

def auto_validate_rendered_views
  before do
    @is_response_validation_on = true
  end

  after do
    @is_response_validation_on = false
  end
end