Commit d88e70951ac5624d2e5c18f303938a1fc794d239

Authored by AntonioTerceiro
1 parent a54592c4

ActionItem85: removing use of fixtures



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@654 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
test/unit/environment_test.rb
@@ -34,7 +34,7 @@ class EnvironmentTest < Test::Unit::TestCase @@ -34,7 +34,7 @@ class EnvironmentTest < Test::Unit::TestCase
34 end 34 end
35 35
36 def test_features 36 def test_features
37 - v = environments(:colivre_net) 37 + v = Environment.new
38 v.enable('feature1') 38 v.enable('feature1')
39 assert v.enabled?('feature1') 39 assert v.enabled?('feature1')
40 v.disable('feature1') 40 v.disable('feature1')
@@ -42,13 +42,13 @@ class EnvironmentTest < Test::Unit::TestCase @@ -42,13 +42,13 @@ class EnvironmentTest < Test::Unit::TestCase
42 end 42 end
43 43
44 def test_enabled_features 44 def test_enabled_features
45 - v = environments(:colivre_net) 45 + v = Environment.new
46 v.enabled_features = [ 'feature1', 'feature2' ] 46 v.enabled_features = [ 'feature1', 'feature2' ]
47 assert v.enabled?('feature1') && v.enabled?('feature2') && !v.enabled?('feature3') 47 assert v.enabled?('feature1') && v.enabled?('feature2') && !v.enabled?('feature3')
48 end 48 end
49 49
50 def test_enabled_features_no_features_enabled 50 def test_enabled_features_no_features_enabled
51 - v = environments(:colivre_net) 51 + v = Environment.new
52 v.enabled_features = nil 52 v.enabled_features = nil
53 assert !v.enabled?('feature1') && !v.enabled?('feature2') && !v.enabled?('feature3') 53 assert !v.enabled?('feature1') && !v.enabled?('feature2') && !v.enabled?('feature3')
54 end 54 end