similar to: How to test the model dependence ?

Displaying 20 results from an estimated 400 matches similar to: "How to test the model dependence ?"

2011 May 01
2
More detailed Test::Unit error report
Hi, I''m starting to use Test::Unit to create unit tests for my Rails Applications/Plugins. I don''t have much experience in Ruby Unit Testing. The problem is that the output report is very simple and it is very difficult to discover where is the error. Test::Unit does not show the line number of the error and the Stack Trace printed using the --trace option does not help either.
2011 Apr 18
2
rubygems fail - require hpricot!
Hi guys, I wanted to fetch some info from webpage and use it in my db. I read hpricot is one way to do it. But the problem is I''m unable to use it with my app. For some reason after successfully installing hpricot it fails when I try to use it in the rails console. I''ve been trying to fix this for the last four-five days. I''m stumped ! I tried re-installing everything
2011 May 27
2
Can't install RedCloth gem, fails to compile
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, I''m trying to install the RedCloth gem on my Arch Linux (64bit) system, but hadn''t had success yet, RedCloth doesn''t seem to compile. Here''s the installation output: ====================================== $ LANG=en_US.utf8 sudo gem install RedCloth Building native extensions. This could take a while...
2011 May 20
3
"no such file to load -- rails/commands/runner (LoadError)"
Hi, I am using ruby 1.9.2 and rails 3 for my application. I have written a bash script which I want to run in cron. If I directly run the bash file it runs. If I run it through the cron I get the following error:- "/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'': no such file to load -- rails/commands/runner (LoadError) from
2011 May 27
7
Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.
Environment: rvm ruby 1.9.2-p180 rails 3.1.rc1 Conditions: gem "coffee-script" # in Gemfile at least one file with .js.coffee (even empty inside) in app/assets Result: WEBrick or Unicorn hangs. Only kill -9 <pid> helps. P.S. What additional info should I provide? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
2011 May 15
0
Upgrading to Rails 3.1
I''m working on updating my rails 3.0.5 app to rails 3.1.0.beta1 and I seem to be running into a problem when doing `rake rails:update` when it runs `rake rails:update:javascripts` Here is my bundle: Gems included by the bundle: * RedCloth (4.2.7) * actionmailer (3.1.0.beta1) * actionpack (3.1.0.beta1) * activemodel (3.1.0.beta1) * activerecord (3.1.0.beta1) * activeresource
2011 Sep 08
1
Magic Multi Connections gem + Rails 3.1
Hello, Like in topic, did anyone tried to run this gem under 3.1? I''m getting error that mirror_db_connection is not valid key: ArgumentError: Unknown key: mirror_db_connection from /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/ activesupport-3.1.0/lib/active_support/core_ext/hash/keys.rb:44:in `block in assert_valid_keys'' from
2011 Jul 18
1
rails server being aborted due to mysql lib file not available
Hi, My system has the following : MacOs Leopard Rails 3 Ruby 1.9 Mysql 5.1.58 mysql2 ruby gems My problem is that when i give "rails server", the task aborts with the foll error rails server/Users/nisha/.rvm/gems/ruby-1.9.2-p180@rails3/gems/ railties-3.0.5/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
2011 May 16
1
You cannot have more than one Rails::Application (RuntimeError)
I installed RVM and am getting a kinds of errors. I have managed to get most things back to normal but I get this error now in one of my apps. /.rvm/gems/ruby-1.9.2-p180/gems/railties-3.0.7/lib/rails/application.rb:63:in `inherited'': You cannot have more than one Rails::Application (RuntimeError) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are
2011 Jul 23
3
Problems running unicorn_rails without bundle exec (in a RVM context)
Hello, I cannot run unicorn_rails out without using bundle exec . This is the error: /home/user/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:31:in `block in setup'': You have already activated rack 1.3.1, but your Gemfile requires rack 1.2.3. Consider using bundle exec. (Gem::LoadError) Maybe RVM is involved? Maybe I am involved? Please add me in the CC replies,
2011 Jun 11
15
after initialize blowing up---help
All, Can anyone see what''s happening here? ================== migration ======================= class CreateGreetings < ActiveRecord::Migration def self.up create_table :greetings do |t| t.string :greet t.string :language t.integer :count t.timestamps end end def self.down drop_table :greetings end end ================== greeting.rb
2011 Jul 05
0
Problem in accessing bucket of my AWS S3 account
I tried to establish connection to my aws s3 account like this in my irb console - AWS::S3::Base.establish_connection!(:access_key_id => ''my access key'', :secret_access_key => ''my secret key'', :server => " s3-ap-southeast-1.amazonaws.com") And it works well and prompt this - => #<AWS::S3::Connection:0x8cd86d0
2011 Apr 23
1
rake spec fails where rake spec:(models|controllers|views) pass
I''m still trying to work into Ruby 1.9.2 and am now experiencing something that makes no sense to me. Using rspec 1.3.2 and rspec-rails 1.3.4 with rails 2.3.11 on ruby 1.9.2-p180, when I $ rake spec:models they all pass. When I $ rake spec:controllers they all pass. When I $ rake spec:views they all pass. But when I $ rake spec I get <path to
2011 Mar 28
0
error compiling ruby 1.9.2-p180 while upgrading to Rails 3
gcc -shared -o ../../../.ext/i686-linux/digest/md5.so md5init.o md5.o - L. -L../../.. -L/home/rails3/.rvm/usr,/lib -Wl,-R/home/rails3/.rvm/ usr,/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/home/ rails3/.rvm/rubies/ruby-1.9.2-p180/lib -L/home/rails3/.rvm/rubies/ ruby-1.9.2-p180/lib -lruby -lpthread -lrt -ldl -lcrypt -lm -lc /usr/bin/ld: /lib: No such file: File format not recognized
2011 Jun 15
1
Ruby 1.9.2 - puppetd error "Could not request certificate: SSL_connect returned=1"
Hello, Running latest Puppet 2.7rc4, Ruby 1.9.2 p180, slackware 13.37 64. Default (webrick) setup, no mongrel no apache. Running puppet master on the main puppet server works fine, no problem. Running puppet agent on the same machine works fine, no problem. Running puppet agent on a client server (separate machine) connecting to master gives the following error: "err: Could not request
2011 May 02
0
Change from 3.0.6 => Rails 3.0.7 "no such file to load -- action_mailer/railtie"
In my application.rb, I have this: #require "rails/all" require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "active_model/railtie" (I didn''t want ActiveRecord) This worked fine up to 3.0.6, but now fails with: /Users/jeffdeville/Documents/code/ruby/wg/config/application.rb:6:in
2011 Apr 04
0
issue installing gem Capybara on Debian5 w ruby 1.9.2 ( Rails 3.0.5) => installing native extension
On this server I already installed it in the gemsets for Ruby 1.8.7 and Rails 2.3.11 without any problem ... but trying (many times .. ) to install in Ruby 1.9.2 (Rails 3.0.5) raises an error ... It''s not related to the gem itself as the gem doesn(t build any native extension .. but to one dependency... I don''t know where to start looking for ... here is the log message :
2011 Jun 11
8
Help with railroad
Can anyone help me install railroad gem? What I need is a simple class diagram of my rails website. Not necessarily with railroad (if you know any other software, for mac, that works). The website is http://railroad.rubyforge.org/ I couldn''t find any explanation on how to install it. Thank you, Rodrigo -- You received this message because you are subscribed to the Google Groups
2002 May 02
4
Intel Boot Agent 4.0.19
First, THANKS! The SYSLINUX/PXELINUX s/w and docs are great. I have been able to set up a working server for PXE boot in very little time, using our existing Win2k DHCP server and a Red Hat 7.2 Linux server for tftp, etc... It took very little time (compared to an earlier effort 4 months ago.....) and the pxelinux/menu/memdisk environment is great for us. The environment seems to support PXE
2014 Apr 05
3
snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card [UPDATE]
Philippe, Ivan, please see https://github.com/networkupstools/nut/issues/118 and send back your data. cheers Arno -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140405/682f10dd/attachment-0001.html>