Skip to content

Commit

Permalink
reset validation framework to old value after specs
Browse files Browse the repository at this point in the history
  • Loading branch information
langalex committed Dec 10, 2010
1 parent 0e2645f commit 6ad94f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/railtie_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ def self.root
require 'couch_potato/railtie'

describe "railtie" do
before(:all) do
@validation_framework = CouchPotato::Config.validation_framework
end

after(:all) do
CouchPotato::Config.validation_framework = @validation_framework
end

context 'yaml file contains only database names' do
it "should set the database name from the yaml file" do
File.stub(:read => "test: test_db")
Expand Down

0 comments on commit 6ad94f2

Please sign in to comment.