spec/command/apk_analyzer_spec.rb in danger-apkstats-0.2.0 vs spec/command/apk_analyzer_spec.rb in danger-apkstats-0.3.0

- old
+ new

@@ -10,16 +10,15 @@ let(:apk_other3) { fixture_path + "app-other3.apk" } let(:apk_other4) { fixture_path + "app-other4.apk" } let(:apk_other5) { fixture_path + "app-other5.apk" } let(:apk_method64k) { fixture_path + "app-method64k.apk" } - it "should use custom path if set" do - expect(ApkAnalyzer.new({}).command_path).to eq("#{ENV.fetch('ANDROID_HOME')}/tools/bin/apkanalyzer") + it "should use command_path" do expect(ApkAnalyzer.new(command_path: "/y/z").command_path).to eq("/y/z") end context "command" do - let(:command) { ApkAnalyzer.new({}) } + let(:command) { ApkAnalyzer.new(command_path: ENV.fetch("APKANALYZER_PATH")) } it "file_size should return apk size" do expect(command.file_size(apk_base)).to eq(1_621_248.to_s) end