Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mbj/mutant
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 323f220f346a5e0293b34e9fe35e30509f6a0ed8
Choose a base ref
..
head repository: mbj/mutant
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c3562e2f4b32daaa0678c200039a661131b56631
Choose a head ref
Showing with 12 additions and 2 deletions.
  1. +1 −1 lib/mutant/cli/command/run.rb
  2. +1 −1 spec/unit/mutant/cli_spec.rb
  3. +10 −0 spec/unit/mutant/license_spec.rb
2 changes: 1 addition & 1 deletion lib/mutant/cli/command/run.rb
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ def zombie?
private

def execute
soft_fail(Mutant::License.apply(world))
soft_fail(License.apply(world))
.bind { Config.load_config_file(world, config) }
.bind { |cli_config| Bootstrap.apply(world, cli_config) }
.bind(&Runner.public_method(:apply))
2 changes: 1 addition & 1 deletion spec/unit/mutant/cli_spec.rb
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@

def apply
described_class.parse(
arguments: arguments,
arguments: Marshal.load(Marshal.dump(arguments)),
config: config,
world: world
)
10 changes: 10 additions & 0 deletions spec/unit/mutant/license_spec.rb
Original file line number Diff line number Diff line change
@@ -77,6 +77,16 @@ def apply
end
end

it 'loads license json' do
if load_json
apply

expect(Mutant::License::Subscription)
.to have_received(:load)
.with(world, license_json)
end
end

it 'returns expected result' do
expect(apply).to eql(expected_result)
end