Sha256: 01cc5f85218f54dd445319a6ab47fb7c1a0faf7fe431babda5e3aa9f0e0d42cb

Contents?: true

Size: 518 Bytes

Versions: 4

Compression:

Stored size: 518 Bytes

Contents

module Wysihtml5n
  module Rails
    class Spec < MiniTest::Spec

      before do
        reset_caches
      end

      private

      def dummy_app
        Dummy::Application
      end

      def dummy_config
        dummy_app.config
      end

      def dummy_assets
        dummy_app.assets
      end

      def dummy_asset(name)
        dummy_assets[name].to_s.strip
      end

      def reset_caches
        dummy_assets.version = SecureRandom.hex(32)
        dummy_assets.cache.clear
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wysihtml5n-rails-0.0.4 test/support/helpers.rb
wysihtml5n-rails-0.0.3 test/support/helpers.rb
wysihtml5n-rails-0.0.2 test/support/helpers.rb
wysihtml5n-rails-0.0.1 test/support/helpers.rb