Sha256: cd1085e0bad3955c80eb59b24ccc9545e938944989e516848bc4de458d9d2655

Contents?: true

Size: 390 Bytes

Versions: 4

Compression:

Stored size: 390 Bytes

Contents

require 'spec_helper'

describe Dicer::Contextable do
  let(:entity) { Entity.new({}) }
  let(:cleaning_context) { CleaningContext.new }

  describe '#in_context' do
    context 'current context is cleaning context' do
      before do
        Dicer::Context.current = cleaning_context
      end

      subject { entity.in_context }

      it { should respond_to(:clean) }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dicer-0.3.0 spec/dicer/railtie/contextable_spec.rb
dicer-0.2.0 spec/dicer/railtie/contextable_spec.rb
dicer-0.1.0 spec/dicer/railtie/contextable_spec.rb
dicer-0.0.1 spec/dicer/railtie/contextable_spec.rb