search for: fcbk

Displaying 5 results from an estimated 5 matches for "fcbk".

Did you mean: cbk
2011 Aug 02
4
Best way to test tasks
I have a task that runs frequently in order to get/import data from another system. Because of this I wanted to know which is the best way to test tasks in order to create the tests needed. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110802/315d630f/attachment.html>
2011 Jul 28
2
RSpec, shoulda-matchers and Rails model attributes validations
I was trying out RSpec framework in a project and got stopped doing the unit test of a model. In particular, doing the test for the associations and the ActiveRecord validations. I started writing the validations but my tests didn''t look DRY at all. Before refactoring the tests checked out and look for other people solutions. I found out shoulda-matchers and Shoulda (which if I
2011 Jul 26
1
ActiveRecord has_many associations
Given the models Country, State, City and Person as follows. class Country < ActiveRecord::Base has_many :states end class State < ActiveRecord::Base belongs_to :country has_many :cities end class City < ActiveRecord::Base belongs_to :state has_many :people end class Person < ActiveRecord::Base belongs_to :city end Is there any way that doesn''t allow to delete
2011 May 31
1
Calendars in Rails
Hi all, I''m currently in the need to implement a calendar in rails. It should be able to present a year, month and day view. The events in these 3 views should be able to be opened, on click, to view the information and/or edit it (according to restrictions). The events will belong to users. One requirement is that users could filter which other users events they want to see (different
2011 Aug 03
2
How to test modules and custom validators
I''m trying to have most of the important stuff tested and in order to do that I run in front of some stuff I''m not quite sure which is the best way to test them. At this time I am having question around how to test modules and the custom validators (the typical email format validator for example). To test a module the best I saw up to now was finded here: