Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
teardown reset preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
sbounmy committed May 13, 2012
1 parent 50e7590 commit 2ac6da2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/integration/variant_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ class ProductTest < ActionDispatch::IntegrationTest
end
end

def teardown
# reset preferences to default values
SpreeVariantOptions::VariantConfig.allow_select_outofstock = false
SpreeVariantOptions::VariantConfig.default_instock = false
end
end

context 'without inventory tracking' do
Expand Down

0 comments on commit 2ac6da2

Please sign in to comment.