SitePrism.Vcr 0.1.0 is released

Posted: Dec 10, 2013

We have released a new version of SitePrism.Vcr gem. Thanks to Roman Rott for helping me with this release.

Changed

@cars.apply_vcr(-> { page.find('#cars').click }) do
  fixtures ['cars']
end

now we use chainable way for this purpose

@cars = CarsPage.new

@cars.shift_event {
  page.find('#cars').click
}.apply_vcr do
  fixtures ['cars']
end

Fixed

@products_page.cars_dropdown.click_and_apply_vcr do
  replace
  fixtures ['cars/ford/prices']
end

Added

@products_page.cars_dropdown.shift_event{
  set 'Ford'
}.apply_vcr do
  fixtures ['cars/ford/prices']
end
class CarsPage < TransportPage
  link_vcr_with_element :transport_details_link do
    fixtures ['cars/ford']
  end
end

@page = CarsPage.new
@page.transport_details_link.click_and_apply_vcr
class ProductsPage < SitePrism::Page
  link_vcr_with_element :details_link do
    fixtures ['cars/ford']

    waiter(eject_cassettes: false) { self.wait_until_loading_indicator_invisible } # default waiter with options
  end
end

@page = ProductsPage.new
@page.details_link.click_and_apply_vcr do
  waiter_options(eject_cassettes: true) # redefines default options
end
Hey, do you need to host your project? Just click here and get $10 in credit from DigitalOcean.