Skip to content

Commit

Permalink
Merge pull request voxpupuli#386 from wyardley/spec_failure
Browse files Browse the repository at this point in the history
Proposed fix for failing parallel spec tests
  • Loading branch information
bastelfreak authored Sep 28, 2017
2 parents acf444c + 18c1fc9 commit c844fc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/unit/provider/package/pear_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
end

let(:provider) do
described_class.new(resource)
provider = described_class.new(resource)
provider.resource = resource
provider
end

before do
described_class.stubs(:command).with(:pear).returns '/fake/pear'
resource.provider = provider
end

describe '.instances' do
Expand Down

0 comments on commit c844fc5

Please sign in to comment.