Skip to content

Commit

Permalink
changed namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed May 28, 2020
1 parent d000be0 commit 62093cb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions library/general/test/autoinst_issues/list_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
require "installation/autoinst_issues/issue"
require "installation/autoinst_issues/list"

module Installation
module Test
module AutoinstIssues
# Represents a problem that occurs when an exception is raised.
class Exception < ::Installation::AutoinstIssues::Issue
Expand Down Expand Up @@ -59,12 +59,12 @@ def message
describe Installation::AutoinstIssues::List do
subject(:list) { described_class.new }

let(:issue) { instance_double(Installation::AutoinstIssues::Exception) }
let(:issue) { instance_double(Test::AutoinstIssues::Exception) }

describe "#add" do
it "adds a new issue to the list" do
list.add(Installation::AutoinstIssues::Exception, StandardError.new)
expect(list.to_a).to all(be_an(Installation::AutoinstIssues::Exception))
list.add(Test::AutoinstIssues::Exception, StandardError.new)
expect(list.to_a).to all(be_an(Test::AutoinstIssues::Exception))
end
end

Expand All @@ -77,11 +77,11 @@ def message

context "when some issue was added" do
before do
2.times { list.add(Installation::AutoinstIssues::Exception, StandardError.new) }
2.times { list.add(Test::AutoinstIssues::Exception, StandardError.new) }
end

it "returns an array containing added issues" do
expect(list.to_a).to all(be_a(Installation::AutoinstIssues::Exception))
expect(list.to_a).to all(be_a(Test::AutoinstIssues::Exception))
expect(list.to_a.size).to eq(2)
end
end
Expand All @@ -95,7 +95,7 @@ def message
end

context "when some issue was added" do
before { list.add(Installation::AutoinstIssues::Exception, StandardError.new) }
before { list.add(Test::AutoinstIssues::Exception, StandardError.new) }

it "returns false" do
expect(list).to_not be_empty
Expand All @@ -105,7 +105,7 @@ def message

describe "#fatal?" do
context "when contains some fatal error" do
before { list.add(Installation::AutoinstIssues::Exception, StandardError.new) }
before { list.add(Test::AutoinstIssues::Exception, StandardError.new) }

it "returns true" do
expect(list).to be_fatal
Expand Down

0 comments on commit 62093cb

Please sign in to comment.