Skip to content

Instantly share code, notes, and snippets.

@jordanmaguire
Created June 10, 2011 05:45
Show Gist options
  • Save jordanmaguire/1018294 to your computer and use it in GitHub Desktop.
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