dnesteryuk/site_prism.vcr

View on GitHub
lib/site_prism_vcr/fixtures/tmp_keeper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module SPV
  class Fixtures
    # This class is responsible for keeping a list
    # of prepared fixtures which will be inserted to Vcr.
    class TmpKeeper
      attr_reader :fixtures

      def initialize(options)
        @fixtures, @options = [], options
      end

      def clean_fixtures
        @fixtures = []
      end

      def add_fixtures(new_fixtures)
        @fixtures.concat(new_fixtures)
      end
    end
  end
end