Sha256: 59c28c285dcd99c61f2edbdb0b996f4512cbaa3b60312cca7c12fe8d20b0933f

Contents?: true

Size: 301 Bytes

Versions: 3

Compression:

Stored size: 301 Bytes

Contents

require 'spec_helper'

describe QbIif::DSL::Class do

  let(:expected) { File.read('spec/fixtures/class.iif') }

  let(:klass) {
    QbIif::IIF.new do
      _class do
        row do
          name 'Foo'
        end
      end
    end
  }

  subject { klass }

  its(:output) { should eq expected }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qb_iif-0.1.2 spec/qb_iif/dsl/class_spec.rb
qb_iif-0.1.1 spec/qb_iif/dsl/class_spec.rb
qb_iif-0.1.0 spec/qb_iif/dsl/class_spec.rb