similar to: Help me about Test-Unit in Ruby on Rails

Displaying 20 results from an estimated 2000 matches similar to: "Help me about Test-Unit in Ruby on Rails"

2013 Mar 29
2
help me test how many requests can be available for one server in Ruby On Rails?
I am try test how many requests can be available for one server in Ruby On Rails but i don''t know how to do? I read some Page but i want ask some one can explaint more clearly this problem. If someone had done this problem can give me some advice?Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on
2013 Mar 19
1
Help me about Bcrypt-ruby
I''m create a login form using Bcrypt-ruby but have error: uninitialized constant User::BCrypt I had setup Bcrypt-ruby in Gemfile gem "bcrypt-ruby", :require => "bcrypt" and restart,rake db:migrate but not run.I had run bundle:install,bundle: update and see Bcrypt had installed. i''m afraid that i use gem ''rails'',
2013 Jun 21
1
How to create Migration from Mysql DB with bigint type of Mysql
I have to create Migration file form Mysql DB But I want type of Migration equivalent with Mysql DB (example : in Mysql with type Bigint and in Migration will have type Int(20) or Bigint) Could You help me solve this Problem? Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2013 Apr 05
2
How to manage data in MongoDB
I''m working with MongoDB but i feel impatient with it. I want tool manage MongoDB same as PHPmyadmin(Mysql),Sqlite manager... I found some tool for this but I don''t know what I shall use please give me some advice for this!Thanks... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 Apr 13
3
Question about ERB performance
I''m trying out rails 3 and I''m looking at the performance statistics given by WEBrick. It says many of my database operations are taking 2ms or 7ms... but the view is taking 40ms. People often say that the database is the bottleneck in applications (which it most certainly can be, and often is)... but isn''t the rendering of ERB a little show here? My test pages really
2011 Mar 28
2
how to use ruby mine
i installed ruby mine 3.0.1 version., installed gems cucumber need to use cucumber and ruby with rubymine can u guide me for that thanks sri -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send
2009 Dec 10
6
(annoying) question: Netbeans vs Rubymine
Hi, I''m don''t want to start another post about what''s the best IDE. Am just considering getting a licence for Rubymine which is 99$ I think. But I don''t know whether it''s really better than Netbeans. My focus is on BDD with cucumber, Rspec and Shoulda. Can anyone tell me his/her experience concering test support in those two IDE''s
2013 May 29
5
Can't setup Rails with RVM in ubuntu 12.04
I''m doing setu Ruby on Rails with RVM. I had setup ruby 1.9.3 p429 and RVM,RubyGem... succesfully But I can''t setup Rails with command : gem install rails because of error: ERROR: While executing gem ... (Gem::DependencyError) Unable to resolve dependencies: rails requires activesupport (= 3.2.13), actionpack (= 3.2.13), activerecord (= 3.2.13), activeresource (= 3.2.13),
2011 Mar 08
6
RoR failure
I am a newbie at RoR and am disappointed by the fact that I couldn''t install it in my Ubuntu 10.10 using an IDE. I tried NetBeans 6.9.1, Eclipse 3.6.2, Aptana Studio and its plugin for Eclipse and RubyMine. There was always a problem somewhere (rails, rubygems, rake, etc) preventing me from working with my project. I currently have Netbeans 6.9.1 bundled with java jdk 1.6.0. I''ve
2008 Nov 21
57
Spec''ing via features
As I work with Rails TestUnit tests I am reconsidering how to use cucumber features. It seems to me that it might be best to have a coherent view of how to arrange my test suites before I get much further into this. Now, so far I have considered three possibilities: 1. Use features exclusively. Create a feature file for each model, one for each controller and possibly an additional one for
2012 Oct 10
1
Rubymine Install Missing Gems
Hello All, I am using JRuby in Linux Ubuntu 10.10. In Rubymine IDE, I am getting as "Install Missing Gems" link. After clicking on that link, I am getting this error :- Installing pg (0.14.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. checking for pg_config... yes Using config values from /usr/bin/pg_config
2016 Jun 07
3
[PATCH 1/2] ruby: Print exceptions thrown by event callbacks.
--- generator/ruby.ml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/generator/ruby.ml b/generator/ruby.ml index 97ccfdc..0f71ccc 100644 --- a/generator/ruby.ml +++ b/generator/ruby.ml @@ -404,15 +404,17 @@ event_callback_wrapper_wrapper (VALUE argvv) return Qnil; } +/* Callbacks aren't supposed to throw exceptions. We just print the + * exception on
2010 Mar 10
1
ifelse logic and multiple assignments
I'm a fairly new R user and while I have a solution to my problem I'm wondering if there is a better one. In SAS it's common to use if/then logic along with a "do" statement to make several things happen. While I could do the same thing in R using a "for" loop, and "if" and {}, I've read that loops are less common in R and I wonder if I'm doing
2009 Apr 22
15
Why RSpec?
I like Shoulda. Sometimes I like plain old Test::Unit. Cucumber gives me a different thought process. I''d just like to hear some thoughts on why RSpec? What does it buy me that I can''t get with Shoulda? I just can''t seem to think in RSpec. Where is there a good example of RSpec tests that will help me grasp the right path? Thanks! -- Amos King
2016 Feb 23
2
[PATCH 1/2] Revert "ruby: Run tests one at a time, instead of in parallel."
It seems the default behaviour of rake is to run tests sequentially, and not in parallel (there are separate gems to achieve that behaviour). Hence just invoke "rake test" to run all the available tests at once. This reverts commit 8f30c3c3f8c063f7c5ff8c6154d881e07a820251. --- ruby/run-ruby-tests | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git
2004 Mar 08
1
drawing filled countries according to data using map('world')? - follow up
Hello, this is a follow up on my previous inquiry regarding the use of the map library (Becker and Wilks 1993). Using the 'world' database I would like to draw filled countries in a world map so that the filling colors of each country corresponds to the value of a policy variable "fix.float" at a specific "year" (the goal is to visualize a policy diffusion pattern
2014 Apr 12
1
attempt to join WIN7 to 4.1 DC fails
When I attempt to join my WIN7x64 ultimate clients to the samba 4.1 DC, the join request fails with the error message: "This operation is only allowed on the primary domain controller of the domain." ---------------- Samba is running on a clean install of Slackware 14.1 ---------------- 'net ads lookup' returns: Information for Domain Controller: (the_correct_IP) Response
2013 Jun 09
2
Minitest mock or stub methods
Hi I''m building a small library to use in my Rails app which interacts with a 3rd party API. It fetches artists and tracks. So I have: lib/my_lib.rb lib/my_lib/artist.rb lib/my_lib/track.rb To get an artist I do artist = MyLib::Artist.find("Oasis") Which returns an instance of Artist if it finds (via 3rd party API) it or nil otherwise. Then I can call artist.tracks which
2009 Jun 23
1
ask for help xyplot
I want to make such plot using the following data set plot Mean with Sd(+/-) by Dim group by Lac here is data Does anyone know how to plot using xyploy Thanks, Aimin Mean Sd Var Min Max Dim Lac 704 44.00000 NA NA 44.0 44.0 -30 3 703 45.92000 9.5484030 91.1720000 60.0 34.4 -30 4 702 57.40000 NA NA 57.4 57.4 -30
2019 Jan 17
1
[hivex PATCH] ruby: improve test functions
Use better functions to check for proper values instead of assert: - refute_nil for non-null functions - assert_equal for checking equality Also, make sure that the parameters for assert_equal are correct: expected value, then got value. --- ruby/tests/tc_120_rlenvalue.rb | 4 ++-- ruby/tests/tc_130_special.rb | 12 ++++++------ ruby/tests/tc_200_write.rb | 4 ++--