kosukeKK
10/12/2016 - 1:19 PM

railsでmongoid/rspec/pryを使うnewのやり方 ref: https://qiita.com/kosukeKK/items/a748541226be1efe0dba

railsでmongoid/rspec/pryを使うnewのやり方 ref: https://qiita.com/kosukeKK/items/a748541226be1efe0dba

config.include FactoryGirl::Syntax::Methods
$ rails g mongoid:config
$ bundle exec rails generate rspec:install
gem 'mongoid'
gem 'haml-rails'

group :development do
gem 'xray-rails'
end

group :test do
gem 'database_cleaner'
gem 'binding_of_caller'
end
group :development :test do
gem 'rspec-rails'
gem 'factory_girl_rails'
gem 'pry-rails'
gem 'pry-byebug'
gem 'pry-doc'
gem 'better_errors'
end

$ rails new sample --skip-active-record --skip-bundle