Sha256: 883e673b71b5252e592b65f28e73d830a8636ddb01b0767c9077dd0698455379

Contents?: true

Size: 1.61 KB

Versions: 4

Compression:

Stored size: 1.61 KB

Contents

require 'test_helper'

module Vedeu

  describe Bindings do

    let(:described) { Vedeu::Bindings }

    describe '.setup!' do
      before do
        Vedeu::Events::Repository.stubs(:reset!)

        Vedeu::Bindings::Application.stubs(:setup!)
        Vedeu::Bindings::Document.stubs(:setup!)
        Vedeu::Bindings::DRB.stubs(:setup!)
        Vedeu::Bindings::Focus.stubs(:setup!)
        Vedeu::Bindings::Menus.stubs(:setup!)
        Vedeu::Bindings::Movement.stubs(:setup!)
        Vedeu::Bindings::Refresh.stubs(:setup!)
        Vedeu::Bindings::System.stubs(:setup!)
        Vedeu::Bindings::View.stubs(:setup!)
        Vedeu::Bindings::Visibility.stubs(:setup!)
      end

      subject { described.setup! }

      it {
        Vedeu::Bindings::Application.expects(:setup!)
        subject
      }

      it {
        Vedeu::Bindings::Document.expects(:setup!)
        subject
      }

      it {
        Vedeu::Bindings::DRB.expects(:setup!)
        subject
      }

      it {
        Vedeu::Bindings::Focus.expects(:setup!)
        subject
      }

      it {
        Vedeu::Bindings::Menus.expects(:setup!)
        subject
      }

      it {
        Vedeu::Bindings::Movement.expects(:setup!)
        subject
      }

      it {
        Vedeu::Bindings::Refresh.expects(:setup!)
        subject
      }

      it {
        Vedeu::Bindings::System.expects(:setup!)
        subject
      }

      it {
        Vedeu::Bindings::View.expects(:setup!)
        subject
      }

      it {
        Vedeu::Bindings::Visibility.expects(:setup!)
        subject
      }

      it { subject.must_equal(true) }
    end

  end # Bindings

end # Vedeu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.6.19 test/lib/vedeu/bindings/bindings_test.rb
vedeu-0.6.18 test/lib/vedeu/bindings/bindings_test.rb
vedeu-0.6.17 test/lib/vedeu/bindings/bindings_test.rb
vedeu-0.6.16 test/lib/vedeu/bindings/bindings_test.rb