Skip to content

Instantly share code, notes, and snippets.

@jordanmaguire
Created June 10, 2011 05:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jordanmaguire/1018294 to your computer and use it in GitHub Desktop.
A spec demonstrating how stub_env works
it "passes" do
stub_env "development" do
Rails.env.should be_development
end
Rails.env.should be_test
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment