Sha256: 185593e4f194b0b109d836cf62ba1bdc76fe1ca9a61753e15f2c22ec956c328c

Contents?: true

Size: 1.58 KB

Versions: 3

Compression:

Stored size: 1.58 KB

Contents

require 'test_helper'

module Vedeu

  module Bindings

    describe Visibility do

      context 'the visibility events are defined' do
        it { Vedeu.bound?(:_clear_).must_equal(true) }
        it { Vedeu.bound?(:_clear_group_).must_equal(true) }
        it { Vedeu.bound?(:_clear_view_).must_equal(true) }
        it { Vedeu.bound?(:_clear_view_content_).must_equal(true) }

        it { Vedeu.bound?(:_cursor_hide_).must_equal(true) }
        it { Vedeu.bound?(:_cursor_show_).must_equal(true) }
        it { Vedeu.bound?(:_hide_cursor_).must_equal(true) }
        it { Vedeu.bound?(:_show_cursor_).must_equal(true) }
        it { Vedeu.bound?(:_toggle_cursor_).must_equal(true) }

        it { Vedeu.bound?(:_hide_group_).must_equal(true) }
        it { Vedeu.bound?(:_show_group_).must_equal(true) }
        it { Vedeu.bound?(:_toggle_group_).must_equal(true) }

        it { Vedeu.bound?(:_hide_interface_).must_equal(true) }
        it { Vedeu.bound?(:_show_interface_).must_equal(true) }
        it { Vedeu.bound?(:_toggle_interface_).must_equal(true) }
        it { Vedeu.bound?(:_hide_view_).must_equal(true) }
        it { Vedeu.bound?(:_show_view_).must_equal(true) }
        it { Vedeu.bound?(:_toggle_view_).must_equal(true) }
      end

      # describe ':_some_event_' do
      #   let(:_name) { 'some_name' }
      #
      #   before do
      #     # stub expectation
      #   end
      #
      #   subject { Vedeu.trigger(:_some_event_, _name) }
      #
      #   it {
      #     # expectation
      #     subject
      #   }
      # end

    end # Visibility

  end # Bindings

end # Vedeu

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vedeu-0.6.29 test/lib/vedeu/bindings/visibility_test.rb
vedeu-0.6.28 test/lib/vedeu/bindings/visibility_test.rb
vedeu-0.6.27 test/lib/vedeu/bindings/visibility_test.rb