Test Driven Development : Test Driven Development is a programming practice that instructs “Developers to write new code only If the automated test cases failed and to eliminate duplication? For every bit of functionality, you first develop a test that specifies and validates what the code will do”

Read on →

Comments

Vel Pradeep
Thanks dude….Hereafter i will be keep on posting…………..
Deepak M
Great buddy. Good to see your blogs. Keep posting. :)

How to do Rspec Test Coverage in Rails Models : This section covers the basic Rspec test coverage for rails models. Basically, we need to write test coverage to the following areas.

Read on →

Comments

John Hirbour
in newer versions foreign_key should be with_foreign_key
Fitria Rahmaani
thanks a lot for this one .. save my hours :D

but i got an error when i try has_many with class_name and foreign_key

Failure/Error: it { should have_many(:subgroups).class_name("Group").foreign_key(:parent_id) }
NoMethodError:
protected method `foreign_key' called for #

do you know how to resolve it ?