Skip to content

Commit

Permalink
test improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Apr 7, 2016
1 parent 55bc5fb commit 5ff5fad
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/default_pattern_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env rspec

require_relative "./test_helper"
require_relative "./product_factory"
require_relative "test_helper"
require_relative "product_factory"

require "packager/default_pattern"

Expand Down Expand Up @@ -88,16 +88,17 @@

describe "#select" do
context "no default pattern found" do
it "does not select anything to install" do
before do
expect(subject).to receive(:names).and_return([])
end

it "does not select anything to install" do
expect(Yast::Pkg).to_not receive(:ResolvableInstall)

subject.select
end

it "returns true (success)" do
expect(subject).to receive(:names).and_return([])

expect(subject.select).to eq(true)
end
end
Expand Down

0 comments on commit 5ff5fad

Please sign in to comment.