Skip to content

Instantly share code, notes, and snippets.

@brian-lc
Created May 21, 2009 16:37
Show Gist options
  • Select an option

  • Save brian-lc/115561 to your computer and use it in GitHub Desktop.

Select an option

Save brian-lc/115561 to your computer and use it in GitHub Desktop.
describe "actions on rails init" do
# Tiffany should hook in to the rails init in development
# mode and generate the specification
before(:all) do
# Generate a rails application
@app_location = File.join(FileUtils.pwd,'spec')
FileUtils.cd(@app_location)
`rails test_app`
end
it "knows it the current RAILS_ENV" do
pending
end
it "only runs in the development environment" do
pending
end
it "adds a new gem to tiffany if a gem is added to the application" do
pending
end
after(:all) do
# Cleanup rails application
FileUtils.cd(@app_location) #making sure we're still in the right spot
FileUtils.rm_rf('test_app')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment