Category Archives: developer tools

How to push a particular branch to Heroku

This is just a shortcut to a command I found here: http://devcenter.heroku.com/articles/git This is my .git/config: 1234567891011121314151617[core]   repositoryformatversion = 0   filemode = true   bare = false   logallrefupdates = true   ignorecase = true [heroku]   account = personal [remote "heroku"]   url = git@heroku.personal:censo2010.git   fetch = +refs/heads/*:refs/remotes/heroku/* [remote "origin"]   [...]

Also posted in linux/unix world, programming, web programming | Tagged , , , , , , , , | Leave a comment

How to modify a Github Wiki in your local environment

It’s very simple. It’s just another Git repository to clone and start editing. For example: 123456[etagwerker@gesell ~]$ git clone git@github.com:ombushop/liquid-api.wiki.git [etagwerker@gesell ~]$ ls liquid-api.wiki/ Es-Liquid-para-programadores.textile        ¿Qué-es-Liquid?.md Es-liquid-para-diseñadores.textile     ¿Qué-puedo-hacer-en-Ombu-Shop-con-Liquid?.md Home.md                     ¿Qué-variables-me-provee-Ombu-Shop?.md Liquid:-Home.textile Start using your favorite editor and git commit! (To [...]

Also posted in open source, programming | Tagged , , | Leave a comment

How to load all fixtures testing with RSpec 2 and Rails 3

Anyway, if you want to have RSpec 2 load all of the fixtures (in your spec/fixtures directory) to your database and test your Rails 3 app, you need have this configuration:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
RSpec.configure do |config|
  # == Mock Framework
  #
  # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
  #
  # config.mock_with :mocha
  # config.mock_with :flexmock
  # config.mock_with :rr
  config.mock_with :rspec

  # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
  config.fixture_path = "#{::Rails.root}/spec/fixtures"

  # If you're not using ActiveRecord, or you'd prefer not to run each of your
  # examples within a transaction, remove the following line or assign false
  # instead of true.
  config.use_transactional_fixtures = true

  # This will pick up all of the fixtures defined in spec/fixtures into your
  # database and you'll be able to test with some sample data
  # (eg. Countries, States, etc.)
  config.global_fixtures = :all
end
Also posted in open source, programming, Ruby programming, software engineering, web programming | Tagged , , , , , , , , | Leave a comment