Skip to content

Commit

Permalink
fixed a mock in test
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Oct 16, 2014
1 parent e79a8b8 commit 23d32a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/registration_spec.rb
Expand Up @@ -92,7 +92,8 @@

describe "#activated_products" do
it "returns list of activated products" do
expect(SUSE::Connect::Status).to receive(:activated_products).and_return([])
status = double(:activated_products => [])
expect(SUSE::Connect::YaST).to receive(:status).and_return(status)

expect(Registration::Registration.new.activated_products).to be_an(Array)
end
Expand Down

0 comments on commit 23d32a2

Please sign in to comment.