Skip to content

Commit

Permalink
Added check if Fog.mock! should be used in AWS tests
Browse files Browse the repository at this point in the history
Without the check all tests were assumed mocked regardless of the
users environment setting.
  • Loading branch information
tokengeek committed Feb 6, 2012
1 parent 17454c6 commit d50512e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/aws/models/storage/directory_tests.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Fog.mock!
Fog.mock! if ENV['FOG_MOCK']

Shindo.tests("Storage[:aws] | directory", [:aws]) do

Expand Down
2 changes: 1 addition & 1 deletion tests/aws/models/storage/file_tests.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Fog.mock!
Fog.mock! if ENV['FOG_MOCK']

Shindo.tests("Storage[:aws] | file", [:aws]) do

Expand Down
2 changes: 1 addition & 1 deletion tests/aws/models/storage/files_tests.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Fog.mock!
Fog.mock! if ENV['FOG_MOCK']

Shindo.tests("Storage[:aws] | files", [:aws]) do

Expand Down
2 changes: 1 addition & 1 deletion tests/aws/models/storage/version_tests.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Fog.mock!
Fog.mock! if ENV['FOG_MOCK']

Shindo.tests("Storage[:aws] | version", [:aws]) do

Expand Down
2 changes: 1 addition & 1 deletion tests/aws/models/storage/versions_tests.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Fog.mock!
Fog.mock! if ENV['FOG_MOCK']

Shindo.tests("Storage[:aws] | versions", [:aws]) do

Expand Down

0 comments on commit d50512e

Please sign in to comment.