similar to: Rake Test Output Prettifier

Displaying 20 results from an estimated 2000 matches similar to: "Rake Test Output Prettifier"

2007 Apr 18
1
Scaffolding Specs
I just wrote a really simple tool that cranks out spec scaffolds for Rails apps. It''s new and pretty simple, but you might find it useful: http://calicowebdev.com/blog/show/13 --steve
2007 Sep 16
12
rspec_todo -- spec''ing backwards
While the spirit of BDD is to spec first and code second, many of us have legacy code. Worse, some of us have legacy code without very good coverage. Recognizing that *I* have such code, I created a script that grinds through your .rb files and creates placeholder specs for each public method. While it is more sensible to spec behavior of code function than of individual methods, this
2006 Jun 04
5
Manipulating form inputs?
I have created a scaffold Admin/Radicals for doing CRUD. However, I''m not sure exactly where the scaffold uses the save() method. For a new entry, it creates form "radical" referencing method create(). The code for create() is as follows: def create @radical = Radical.new(params[:radical]) if @radical.save flash[:notice] = ''Radical was
2007 Jun 24
6
mocking errors
What is the correct way to mock out the errors on a Rails model? I''m assuming i need to say @mock_thing = mock_model(Thing) @mock_thing_errors = mock("errors") @mock_thing_errors.should_receive(:full_messages).and_return("An error") @mock_thing.should_receive(:errors).and_return(@mock_thing_errors) Just wanted to check the best practice on this kind of thing and how
2007 May 11
12
tutorial
Hello, Hello Where i can found a good tutorial about Rspec ? thanks
2007 Nov 06
3
Keeping Up with Trunk
I have a project with rspec installed as a plugin using svn:externals. Here are my externals: rspec_on_rails svn://rubyforge.org/var/svn/rspec/trunk/ rspec_on_rails rspec svn://rubyforge.org/var/svn/rspec/trunk/ rspec I just did an svn up on both and now have a version mismatch: ########################################################################
2006 Mar 21
2
How do I get substring of utf-8 string?
I''m trying to get substring from a utf-8 encoded string. (say, first 50 characters of the string) String#[0..49] would give me the first 50 bytes not 50 characters.. I know there is jcode library, but it only let you count number of characters in utf-8 string. unicode gem doesn''t seem to help much. unicode_hacks gem seem to solve the problem, but it also seems to
2007 May 30
2
Bug? Filter chain halted as [#<ActionController::Filters::..
OK so I''ve been trying to follow the tutorial here: http://rails.homelinux.org/ When I simply do "scaffold: category" in the controller.rb, everything works fine. BUT after I generate the controllers and other files using scaffold AS A SCRIPT (script/generate scaffold categories), DESTROY (or DELETE) does not work for any record in a table. This is the error I got: Processing
2007 Jun 09
11
authentication, controller specs. I think I''m missing something simple ....
Hi all, I feel like I''m missing something really easy and I''m just not seeing it. I''m using the restful_authentication plugin and have a User model. Uesr has_many :things and Thing belongs_to :user. That''s it. I did a "script/generate rspec_scaffold thing" to generate all the necessary bits. The "rake db:migrate" to create the db. At
2006 Jul 25
2
Compile from sources
I''ve compiled xen-3.0.2-2 from sources. I''ve went to the end without errors. The ./install.sh script have been created the /etc/grub.conf file as it : # initrd /boot/initrd-version.img #boot=/dev/hdc default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz hiddenmenu title Fedora Core (2.6.15-1.2054_FC5) root (hd0,0) kernel
2007 May 30
6
authentication mocks
hi I''m using restful_authentication and have controller specs working using users fixtures (and login_as) however i''ve been trying for hours without success to do it without fixtures, using mocks and stubs instead. anyone here done this? got code? :) thanks
2007 May 30
4
Using mocks
I''ve just started doing TDD/BDD and like the idea of mocks. So I set out to use them. The doc pages seem great, I setup the mock and then it just works. Here is what I am trying to do: Myuser is a non-rails model of user attributes. We are going to be mocking the connection to the ldap server. The user class has a login method that connects to the ldap server and if successful,
2005 Dec 28
2
form reset after successful form submission
hi, what''s the way to reset the form generated by the form_remote_tag after the successful submission of the form? thanks
2005 Dec 15
10
.rpdf ?
I haven''t delved into the wonderful world of PDF::Writer yet, nor have I run across a need.. but I just had an idea I wanted to throw out there how hard would it be to create a .rpdf template plugin for rails? could be neat ;]
2006 Mar 12
2
Find all the methods on a object in an irb session?
How can I find all the methods on an object from withing irb? Thanks, Joe
2023 Jan 28
1
out-format in one line
Hello, I use rsync with the option --out-format '%o %n? but want to have the contents of the mesages to be overwritten. This means that the actual message while synchronisation shall overwritte the previous one. Therefore i wanted to add a carriage return ?\r? at the end of the ?out-format string but this did not work. How can I do this? Regards Michael
2005 Dec 25
2
scriptaculous-js-1.5.0
I''m not a JavaScript guy, so please help me out. It''s my understanding that Rails 1.0 includes scriptaculous-js-1.5.0 But it seems to contain portions of, but not the complete library. Rails 1.0 includes 4 .js files, scriptaculous-js-1.5.0 includes 8. What am I missing? > tmornini$ rails --version > Rails 1.0.0 > > tmornini$ rails test | grep
2012 Feb 21
4
Praking lot issues.
Ok I now have the basics for dynamic parking working but for some reason when a caller calls in and is parked with a transfer the return call dials the sip peer of the caller and not hte peer of the last party that parked the call. Anyone have any ideas on this? Also when a call is transfered to a parking space. the caller hears the space number. How can I stop that as well? Thanks Bryant
2005 Mar 06
3
Accessing login name from login_generator
I''m new to Rails and am modifying the ToDo tutorial app into something else. I have successfully installed authentication via login_generator and now I working toward restricting access to certain database records based on the login name. I realize that eventually, I''ll want to use the "id" field, but for now, I just want to use the user name itself. I have
2007 May 15
4
Way to mark record as main?
I was curious if there was a built in feature in ActiveRecord or a plugin, but I basically have a database for phone numbers. I want a user to be able to make a phone number as main. There can only be one phone number marked as main at all times. Is there something for this? Thanks for your help. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~