search for: esad

Displaying 17 results from an estimated 17 matches for "esad".

Did you mean: esac
2007 Feb 13
3
"should.be_in [values]" and "each_should_satisfy"
...ing assertion? [value1,value2].should_include actual Is there a more elegant way of performing should_satisfy on a collection, for example I currently use something like collection.each {|x| x.should_satisfy {|x| ... } } which is very ugly. Is there something like each_should_satisfy? Thanks, Esad
2006 Mar 01
5
single transaction migrations
...uld use some more verbosity, for example if migration fails, there''s no reference to migration number nor statement, only something like: rake aborted! uninitialized constant SalePoint Are there any plans for improving on this or maybe even some code in trunk already? ;-) Greetings, Esad -- Posted via http://www.ruby-forum.com/.
2006 Feb 17
1
foreign key support in mysql adapter
...Migration to define my database schema and these "ALTER TABLE t ADD FOREIGN KEY..." look really ugly - that''s why I wanted to ask it would be possible to simply add add_foreign_key method to ActiveRecord? Are there any reasons this isn''t yet implemented? Greetings, Esad -- Posted via http://www.ruby-forum.com/.
2007 Jul 19
1
stopping on first failure
Hi! Is there an option that I could provide to the spec runner that would make it stop after it encounters the first spec that fails? Esad
2007 Feb 20
1
having should_receive expectation for things that happen in setup
...ation and not in the setup, it will pass. Why is this? I thought the setup method was there to actually ''construct'' the context and the specifications are some kind of "postconditions" that only need to be validated after that - am I thinking wrong here? Greetings, Esad
2007 Apr 13
1
File.should be_exist?
...er way of writing File.should be_exist(''filename'')? File.should exist(''foo'') throws NoMethodError in ''specification'' undefined method `exist'' for #<#<Class:0x3ec1c30>:0x3ebc308> (I''m using rspec from the trunk) Esad
2007 Apr 04
1
pontential bug in rspec_on_rails and ActiveRecord transactions
...39;, ''user at example.com'', NULL, NULL, ''2007-04-04 15:35:46'') SELECT count(*) AS count_all FROM urls ROLLBACK How did count statement got into transaction? Is rspec doing some magic with ActiveRecord that is causing this to happen? Thanks for your help, Esad
2006 May 08
4
rake db:migrate
Would it make sense for rake db:migrate to support creating databases if it is not found, with blessing from user to prevent typos, or as an additional command line switch. Or am I just being too lazy? -- Posted via http://www.ruby-forum.com/.
2006 Mar 07
1
decorators for models?
Hi! I''m thinking of implementing datagrid like functionality for showing data (models) in grids so that I don''t have to re-invent the view/controller for each table I need. There are number of parameters that need to be customizable: column titles, row style depending on the data (i.e. showing all rows with balance<0 in red), is column sortable, sort-algorithm etc. To
2007 Apr 17
7
rspec with CI
I am a bit of a rails and rspec noob. I am trying to use rspec in conjunction with CruiseControlrb. When I run a cruise build having spec errors, the build does not indicate a failure. I have tried to track down why this is the case, and my best guess is that the spec task is kicking off the spec via a ruby() method in rake, and that ruby method does not propagate my spec failure back to
2006 May 07
1
rake test without database
Hi! Is it possible to run unit tests when no database is configured? Rails recipes mentions putting following piece of code in a file within lib/tasks/ [:test_units,:test_functional,:recent].each do |name| Rake::Task.lookup(name).prerequisites.clear end However this seem to be out-of-date, as task lookup in rake according to RDoc is now done using Rake:Task[name]. But after I updated the
2006 May 11
1
rendering in after_filter
Hi! Is it possible to render the action within the after_filter method, or is the rendering performed before? I have something like this: class FooController after_filter :send def a @content=... end def b @content=.. end protected def send send_data(@content,...) end end However, when calling the action a or b, the @content doesn''t get sent, but instead
2006 Apr 23
0
SOC project
...ipating on the Google Summer of Code contest (http://code.google.com/soc/ruby/about.html), and I was thinking about applying with some rails-development projects? Is there anyone here thinking about doing the same as I that together we could build something more useful in the end. Greetings, Esad -- Posted via http://www.ruby-forum.com/.
2006 Mar 21
1
including templates/views in plugins
Hi! I''m writing a datagrid plugin and would like to render the datagrid using a .rhtml template. However, I''d like to avoid placing this template in app/views/shared, but it should reside somewhere within vendor/plugins/datagrid/... Any ideas? -- Posted via http://www.ruby-forum.com/.
2012 Oct 05
4
Procesar datos de mysql en R
Cordial Saludo.Deseo sacar los datos resultado de una encuesta en mysql procesarlos en r con el paquete de lógica difusa y proyectarlos en una pagina web dinámica.... de preferencia una solución multiplataforma... Linux. Windows. Necesito la mejor solución... Ya que encuentro muchos paquetes en r que podrían servir pero no estoy seguro... No se si un server web ejecute r eficientemente usando
2006 Mar 29
0
rake default(?)/test_unit magic
Hi list! I''m trying to add a rake task or a command line switch to the existing task to run Tk unit test runner instead of console one. Yet I couldn''t figure out where this magic is happening, i.e. where console runner is initialized and run? And yes, wouldn''t something like rake task "all_test" be more appropriate then default? -- Posted via
2007 Dec 09
0
straight join in rails
Maybe someone will find this useful: I have a relatively complex (My)SQL query that results from having many many :conditions and :includes, and MySQL seems to apply a wrong join order so I wanted to force an order using the STRAIGHT_JOIN statement, but rails doesn''t really let you do it. Having to construct this query manually (there are 4 joins) and still have a right format for eager