Sha256: d64c3222e6a3af1a1d711ba6c597f7dd2195098a9f6e8463394b409509527084
Contents?: true
Size: 891 Bytes
Versions: 2
Compression:
Stored size: 891 Bytes
Contents
# frozen_string_literal: true require 'test_helper' module Vedeu module CLI describe Application do let(:described) { Vedeu::CLI::Application } let(:instance) { described.new(_name) } let(:_name) { 'my_first_app' } describe '#initialize' do it { instance.must_be_instance_of(described) } it { instance.instance_variable_get('@name').must_equal(_name) } end describe '.generate' do # before do # FileUtils.stubs(:cp_r) # FileUtils.stubs(:mkdir) # FileUtils.stubs(:mkdir_p) # FileUtils.stubs(:touch) # File.stubs(:write) # end subject { instance.generate(_name) } # @todo Add more tests. end describe '#generate' do it { instance.must_respond_to(:generate) } end end # Application end # CLI end # Vedeu
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu_cli-0.0.10 | test/lib/vedeu/cli/application_test.rb |
vedeu_cli-0.0.9 | test/lib/vedeu/cli/application_test.rb |