Sha256: 0a115028b9fa3ab3d4838cccffab275b01e4d4874f1b66e14959e28069c3e2af

Contents?: true

Size: 575 Bytes

Versions: 39

Compression:

Stored size: 575 Bytes

Contents

require 'spec_helper'

describe Caracal::Core::Rules do
  subject { Caracal::Document.new }
  
  
  #-------------------------------------------------------------
  # Public Methods
  #-------------------------------------------------------------

  describe 'public method tests' do
    
    # .hr
    describe '.hr' do
      let!(:size) { subject.contents.size }
      
      before { subject.hr }
      
      it { expect(subject.contents.size).to eq size + 1 }
      it { expect(subject.contents.last).to be_a(Caracal::Core::Models::RuleModel) }
    end
    
  end
  
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
caracal-1.0.6 spec/lib/caracal/core/rules_spec.rb
caracal-1.0.5 spec/lib/caracal/core/rules_spec.rb
caracal-1.0.4 spec/lib/caracal/core/rules_spec.rb
caracal-1.0.3 spec/lib/caracal/core/rules_spec.rb
caracal-1.0.2 spec/lib/caracal/core/rules_spec.rb
caracal-1.0.1 spec/lib/caracal/core/rules_spec.rb
caracal-1.0.0 spec/lib/caracal/core/rules_spec.rb
caracal-0.3.0 spec/lib/caracal/core/rules_spec.rb
caracal-0.2.1 spec/lib/caracal/core/rules_spec.rb
caracal-0.2.0 spec/lib/caracal/core/rules_spec.rb
caracal-0.1.8 spec/lib/caracal/core/rules_spec.rb
caracal-0.1.7 spec/lib/caracal/core/rules_spec.rb
caracal-0.1.6 spec/lib/caracal/core/rules_spec.rb
caracal-0.1.5 spec/lib/caracal/core/rules_spec.rb
caracal-0.1.4 spec/lib/caracal/core/rules_spec.rb
caracal-0.1.3 spec/lib/caracal/core/rules_spec.rb
caracal-0.1.2 spec/lib/caracal/core/rules_spec.rb
caracal-0.1.1 spec/lib/caracal/core/rules_spec.rb
caracal-0.1.0 spec/lib/caracal/core/rules_spec.rb