Sha256: 4211ff2ed883467ad844eb14bb205f476c7e797dd63c84d9a6d46c5a1877c5bb

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

Contents

require 'test_helper'

describe 'Views' do

  describe '.interface' do
    subject {
      Vedeu.interface 'keymaps' do
        # ...
      end
    }

    #it { subject.must_be_instance_of(Vedeu::Composition) }

    # it 'allows the use of ... within Vedeu.interface' do
    #   skip
    # end

    context 'when no value is provided' do

    end
  end

  describe '.renders' do
    subject {
      Vedeu.renders do
        # ...
      end
    }

    #it { subject.must_be_instance_of(Vedeu::Composition) }

    # it 'allows the use of ... within Vedeu.renders' do
    #   skip
    # end

    context 'when no block is given' do
      subject { Vedeu.renders }

      it { proc { subject }.must_raise(Vedeu::InvalidSyntax) }
    end
  end

  describe '.views' do
    subject {
      Vedeu.views do
        # ...
      end
    }

    #it { subject.must_be_instance_of(Vedeu::Composition) }

    # it 'allows the use of ... within Vedeu.views' do
    #   skip
    # end

    context 'when no block is given' do
      subject { Vedeu.views }

      it { proc { subject }.must_raise(Vedeu::InvalidSyntax) }
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vedeu-0.3.5 test/integration/dsl/views_test.rb
vedeu-0.3.4 test/integration/dsl/views_test.rb
vedeu-0.3.3 test/integration/dsl/views_test.rb
vedeu-0.3.2 test/integration/dsl/views_test.rb
vedeu-0.3.1 test/integration/dsl/views_test.rb
vedeu-0.3.0 test/integration/dsl/views_test.rb