Sha256: 33dec459728467595c28f4aae94afec2d91d0935d8d0b62281cc36e090b27c43

Contents?: true

Size: 226 Bytes

Versions: 7

Compression:

Stored size: 226 Bytes

Contents

class UsingVcrController < ApplicationController
  def index
  end

  def record_cats
    uri = URI('https://cat-fact.herokuapp.com/facts')
    res = Net::HTTP.get_response(uri)
    @cat_facts = JSON.parse(res.body)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cypress-on-rails-1.17.0 specs_e2e/rails_4_2/app/controllers/using_vcr_controller.rb
cypress-on-rails-1.16.0 specs_e2e/rails_4_2/app/controllers/using_vcr_controller.rb
cypress-on-rails-1.15.1 specs_e2e/rails_4_2/app/controllers/using_vcr_controller.rb
cypress-on-rails-1.15.0 specs_e2e/rails_4_2/app/controllers/using_vcr_controller.rb
cypress-on-rails-1.14.0 specs_e2e/rails_4_2/app/controllers/using_vcr_controller.rb
cypress-on-rails-1.13.1 specs_e2e/rails_4_2/app/controllers/using_vcr_controller.rb
cypress-on-rails-1.13.0 specs_e2e/rails_4_2/app/controllers/using_vcr_controller.rb