Skip to content

Instantly share code, notes, and snippets.

@mculp
Created April 9, 2011 20:35
Show Gist options
  • Save mculp/911741 to your computer and use it in GitHub Desktop.
Save mculp/911741 to your computer and use it in GitHub Desktop.
Using rspec-rails (2.5.0)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
mculp:greenpath matthew$ rails g rspec:install
identical .rspec
exist spec
conflict spec/spec_helper.rb
Overwrite /Users/matthew/work/greenpath/spec/spec_helper.rb? (enter "h" for help) [Ynaqdh] y
force spec/spec_helper.rb
mculp:greenpath matthew$ rails g model search
invoke active_record
create db/migrate/20110409203302_create_greenpath_searches.rb
create app/models/greenpath/search.rb
invoke test_unit
create test/unit/greenpath/search_test.rb
create test/fixtures/greenpath/searches.yml
mculp:greenpath matthew$ rake spec
(in /Users/matthew/work/greenpath)
mculp:greenpath matthew$ cat Gemfile
source "http://rubygems.org"
gem 'rails', :path => "../rails"
gem 'arel', :git => 'git://github.com/rails/arel.git'
gem 'rack', :git => 'git://github.com/rack/rack.git'
gem 'sqlite3'
if RUBY_VERSION < '1.9'
gem "ruby-debug", ">= 0.10.3"
end
gem 'rspec-rails', :group => [:development, :test]
gemspec
mculp:greenpath matthew$ cat greenpath.gemspec
# Provide a simple gemspec so you can easily use your
# project in your rails apps through git.
Gem::Specification.new do |s|
s.name = "greenpath"
s.summary = "Insert Greenpath summary."
s.description = "Insert Greenpath description."
s.files = Dir["lib/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
s.version = "0.0.1"
s.add_development_dependency "launchy"
s.add_development_dependency "rspec-rails"
s.add_development_dependency "capybara"
s.add_development_dependency "sqlite3-ruby"
s.add_development_dependency "factory_girl_rails"
s.add_dependency "simple_form"
s.add_dependency "haml"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment