Sha256: 95585628e2dcbe146208840f8ac53d844988a57d7c157bc283b943afd32d4803

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

require 'test_helper'

module Vedeu

  module CLI

    describe Main do

      let(:described) { Vedeu::CLI::Main }
      let(:instance)  { described.new }

      # describe '#new' do
      #   let(:_name) { 'app_name' }

      #   before do
      #     instance.stubs(:say).returns('')
      #     Vedeu::CLI::Application.stubs(:generate).returns('')
      #   end

      #   subject { instance.new(_name) }

      #   it {
      #     instance.expects(:say)
      #     subject
      #   }
      # end

      # describe '#view' do
      #   let(:_name) { 'view_name' }

      #   before do
      #     instance.stubs(:say).returns('')
      #     Vedeu::CLI::View.stubs(:generate).returns('')
      #   end

      #   subject { instance.view(_name) }

      #   it {
      #     Vedeu::CLI::View.expects(:generate).with(_name)
      #     subject
      #   }
      # end

      describe '#version' do
        before { instance.stubs(:say) }

        subject { instance.version }

        it {
          instance.expects(:say)
            #.with("vedeu #{Vedeu::VERSION} (vedeu_cli #{Vedeu::CLI::VERSION})")
          subject
        }
      end

    end # Main

  end # CLI

end # Vedeu

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vedeu_cli-0.0.8 test/lib/vedeu/cli/main_test.rb
vedeu_cli-0.0.7 test/lib/vedeu/cli/main_test.rb
vedeu_cli-0.0.6 test/lib/vedeu/cli/main_test.rb
vedeu_cli-0.0.5 test/lib/vedeu/cli/main_test.rb
vedeu_cli-0.0.4 test/lib/vedeu/cli/main_test.rb
vedeu_cli-0.0.3 test/lib/vedeu/cli/main_test.rb
vedeu_cli-0.0.2 test/lib/vedeu/cli/main_test.rb
vedeu_cli-0.0.1 test/lib/vedeu/cli/main_test.rb