Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove use of Vertex class variable 'names' from tests. Part of refac…

…tor for #1
  • Loading branch information...
commit 17731a8961a300dba52fb2ed6310997802d5f44c 1 parent abe1895
@D4L authored
View
1  spec/abstract_graph/composition/edge/initialize_spec.rb
@@ -5,7 +5,6 @@ module Composition
describe Edge do
before :all do
- Vertex.class_variable_set :@@names, []
@v1 = Vertex.new "v1"
@v2 = Vertex.new "v2"
end
View
1  spec/abstract_graph/composition/edge/name_spec.rb
@@ -5,7 +5,6 @@ module Composition
describe Edge do
before :all do
- Vertex.class_variable_set :@@names, []
@v1 = Vertex.new "v1"
@v2 = Vertex.new "v2"
end
View
1  spec/abstract_graph/composition/edge/vertices_spec.rb
@@ -5,7 +5,6 @@ module Composition
describe Edge do
before :all do
- Vertex.class_variable_set :@@names, []
@v1 = Vertex.new "v1"
@v2 = Vertex.new "v2"
@edge = Edge.new( @v1, @v2 )
View
10 spec/abstract_graph/composition/vertex/delete_spec.rb
@@ -4,18 +4,8 @@ module AbstractGraph
module Composition
describe Vertex do
- before :each do
- Vertex.class_variable_set :@@names, []
- end
-
describe "#delete" do
- it "removes the name of the vertex in the namespace" do
- vertex = Vertex.new("v1")
- vertex.delete
- Vertex.class_variable_get(:@@names).should eql([])
- end
-
end
end
end
View
4 spec/abstract_graph/composition/vertex/initialize_spec.rb
@@ -4,10 +4,6 @@ module AbstractGraph
module Composition
describe Vertex do
- before :each do
- Vertex.class_variable_set :@@names, []
- end
-
describe "#new" do
before (:each) do
View
4 spec/abstract_graph/composition/vertex/name_spec.rb
@@ -4,10 +4,6 @@ module AbstractGraph
module Composition
describe Vertex do
- before :each do
- Vertex.class_variable_set :@@names, []
- end
-
describe "#name" do
before (:each) do
View
4 spec/abstract_graph/composition/vertex/value_spec.rb
@@ -4,10 +4,6 @@ module AbstractGraph
module Composition
describe Vertex do
- before :each do
- Vertex.class_variable_set :@@names, []
- end
-
describe "#value" do
before (:each) do
Please sign in to comment.
Something went wrong with that request. Please try again.