stalno u pokretu

< IT & tech


05. 08. 2014. bdd / tdd * ruby gem

Factorygirl

http://rubydoc.info/gems/factory_girl/file/GETTING_STARTED.md


it "redirects to the home page upon save" do
  post :create, contact: Factory.attributes_for(:contact)
  response.should redirect_to root_url
end

A factory generates test data to pass to the controller method; note the use of Factory Girl’s attributes_for option, which generates a hash of values as opposed to a Ruby object.

After create

factory :user do
  after(:create) {|instance| create_list(:post, 5, user: instance) }
end

Resources:


Related posts


05. 08. 2014. cucumber * ruby gem * bdd / tdd
Cucumber gem

notes
[ reading time: ~ 1 min. ]

05. 08. 2014. bdd / tdd * rspec * ruby gem
Rspec gem

notes
[ reading time: ~ 3 min. ]

18. 08. 2014. ruby gem * bdd / tdd
Forgery gem

notes
[ reading time: ~ 1 min. ]

30. 08. 2014. ruby gem * bdd / tdd
Faker

notes
[ reading time: ~ 1 min. ]

01. 09. 2014. api * back end * bdd / tdd * cucumber * ruby * ruby gem
Developing rails REST API with Cucumber

json_spec, writing the definitions, checking the http headers, testing authentication...
[ reading time: ~ 3 min. ]

17. 11. 2014. ruby gem * bdd / tdd
Capybara

notes
[ reading time: ~ 2 min. ]

07. 08. 2014. ruby gem
Devise gem

notes
[ reading time: ~ 1 min. ]

03. 09. 2014. api * back end * ruby * ruby gem * security
Devise as authentication solution for rails API

Authentication token, the use of sessions, intsallation and setup, configuring the model, the routes, application controller, custom devise controllers, testing the controllers
[ reading time: ~ 9 min. ]

10. 12. 2014. back end * ruby gem
Capistrano

notes
[ reading time: ~ 1 min. ]

Ovaj sajt ne sadrži first party kukije i druge mehanizme za aktivno praćenje poseta/ponašanja (facebook, google analytics, itd...). Na nekim stranicama se nalaze embedovani youtube video klipovi i google mape koji učitavaju svoje kukije.