Sha256: 4b5fde34f34d00eb930a3c1e37168b7321ff53a684e89b125fbef64efc0837aa

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

RSpec.describe Redpen do
  describe '.check' do
    subject { described_class.check(config_file, target_file, format: format) }
    let(:config_file) { File.expand_path('../../lib/redpen-distribution-1.7.0/conf/redpen-conf-en.xml', __FILE__) }
    let(:format) { 'markdown' }

    context 'when target file is valid' do
      let(:target_file) { File.expand_path('../fixtures/valid.md', __FILE__) }
      it { should be_valid }
    end

    context 'when target file is invalid' do
      let(:target_file) { File.expand_path('../fixtures/invalid.md', __FILE__) }
      it { should_not be_valid }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redpen-0.2.0 spec/redpen_spec.rb