Skip to content
Snippets Groups Projects
Commit 783dbcc9 authored by Markus Reiter's avatar Markus Reiter
Browse files

Use short-style lambdas.

parent ceec5a82
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ describe Hbc::Artifact::App do
let(:cask) { Hbc.load("with-alt-target") }
let(:install_phase) {
lambda { Hbc::Artifact::App.new(cask).install_phase }
-> { Hbc::Artifact::App.new(cask).install_phase }
}
let(:source_path) { cask.staged_path.join("Caffeine.app") }
......
......@@ -9,13 +9,8 @@ describe Hbc::Artifact::App do
let(:source_path) { cask.staged_path.join("Caffeine.app") }
let(:target_path) { Hbc.appdir.join("Caffeine.app") }
let(:install_phase) {
lambda { app.install_phase }
}
let(:uninstall_phase) {
lambda { app.uninstall_phase }
}
let(:install_phase) { -> { app.install_phase } }
let(:uninstall_phase) { -> { app.uninstall_phase } }
before do
TestHelper.install_without_artifacts(cask)
......
......@@ -4,7 +4,7 @@ describe Hbc::Artifact::Artifact do
let(:cask) { Hbc.load("with-generic-artifact") }
let(:install_phase) {
lambda { Hbc::Artifact::Artifact.new(cask).install_phase }
-> { Hbc::Artifact::Artifact.new(cask).install_phase }
}
let(:source_path) { cask.staged_path.join("Caffeine.app") }
......
......@@ -3,9 +3,7 @@ require "test_helper"
describe Hbc::Artifact::Suite do
let(:cask) { Hbc.load("with-suite") }
let(:install_phase) {
lambda { Hbc::Artifact::Suite.new(cask).install_phase }
}
let(:install_phase) { -> { Hbc::Artifact::Suite.new(cask).install_phase } }
let(:target_path) { Hbc.appdir.join("Caffeine") }
let(:source_path) { cask.staged_path.join("Caffeine") }
......
......@@ -5,7 +5,7 @@ describe Hbc::Artifact::App do
let(:cask) { Hbc.load("with-two-apps-correct") }
let(:install_phase) {
lambda { Hbc::Artifact::App.new(cask).install_phase }
-> { Hbc::Artifact::App.new(cask).install_phase }
}
let(:source_path_mini) { cask.staged_path.join("Caffeine Mini.app") }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment