Skip to content

Commit

Permalink
Fix Y2Network::Config test
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Mar 28, 2019
1 parent 6938062 commit 23892ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/y2network/config_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@
it "returns a copy of the object" do
copy = config.copy
expect(copy).to_not be(config)
expect(copy.routing_tables.size).to eq(2)
expect(copy.routing.tables.size).to eq(2)
end

it "returns a copy whose changes won't affect to the original object" do
copy = config.copy
copy.routing_tables.clear
expect(copy.routing_tables).to be_empty
expect(config.routing_tables.size).to eq(2)
copy.routing.tables.clear
expect(copy.routing.tables).to be_empty
expect(config.routing.tables.size).to eq(2)
end
end
end

0 comments on commit 23892ca

Please sign in to comment.