Sha256: 8a85643cf206f28526e8189bc0b10c3decfc78ae1771b2c589899660260bd4ee
Contents?: true
Size: 1 KB
Versions: 6
Compression:
Stored size: 1 KB
Contents
require 'spec_helper' require 'cuesmash/android_compiler' describe Cuesmash::AndroidCompiler do before(:each) do Cuesmash::AndroidCompiler.any_instance.stub(:puts) end describe 'when generating the command' do before(:each) do @compiler = Cuesmash::AndroidCompiler.new(project_name: nil, build_configuration: 'local-Defaulttheme-Debug') end end # "when generating the command" describe 'when compiling' do before(:each) do wait = double @value = double wait.stub(:value) { @value } wait.stub(:join) Open3.stub(:popen3).and_yield(nil, nil, nil, wait) @compiler = Cuesmash::AndroidCompiler.new(project_name: nil, build_configuration: 'local-Defaulttheme-Debug') end # before it 'should complete if all is well' do @value.stub(:exitstatus) { 0 } @compiler.compile do |complete| expect(complete).to equal(true) end end # 'should complete if all is well' end # "when compiling" end # describe Cuesmash::AndroidCompiler
Version data entries
6 entries across 6 versions & 1 rubygems