Skip to content

Commit

Permalink
Merge pull request mizzy#690 from debben/nil_example_check
Browse files Browse the repository at this point in the history
Handle nil @example in cmd backend.
  • Loading branch information
mizzy authored Jul 5, 2019
2 parents 1f281a0 + cdde36b commit 65ecc4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/specinfra/backend/cmd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ def check_os
private

def powershell
architecture = @example.metadata[:architecture] || get_config(:architecture)
architecture = if @example
@example.metadata[:architecture]
end
architecture ||= get_config(:architecture)

case architecture
when :i386 then x86_powershell
Expand Down

0 comments on commit 65ecc4d

Please sign in to comment.