Displaying 20 results from an estimated 200 matches similar to: "JRuby + Rails3 + Unit Tests = "Log" issue?"
2012 Jul 06
0
Running Rspec tests with JRuby fails
How to run RSpec tests with JRuby in a Java project? I tried to run it
with JRuby 1.7.0.preview1,
rspec (2.10.0)
rspec-core (2.10.1)
rspec-expectations (2.10.0)
rspec-mocks (2.10.1)
rspec-rails (2.10.1)
as follows:
jruby -S rspec and got the error:
javix at ubuntu:~/Development/rspec_jruby$ jruby -S rspec spec
NameError: cannot load Java class com.models.Calculator
for_name at
2013 Feb 14
4
Struggling with Jruby Rails + jdbc driver
hi all,
I am having a hard time trying to find out what''s wrong with my setup. It
used to work smoothly until I decided out of the blue to do a selfupdate
and upgrade outdated on MacPort, then things started going south very
quickily.
Since MacPort kinda broke, I pull it all out and re-install the ports I
have before, which went pretty smoothly. Then to my surprise any command I
2011 Jun 09
1
Rails 3.1 RC4 has broken migrations
Rails 3.1 RC4 has broken migrations
$ jruby -v
jruby 1.6.2 (ruby-1.8.7-p330) (2011-05-23 e2ea975) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_24) [darwin-x86_64-java]
$ jruby -S rails -v
Rails 3.1.0.rc4
$ jruby -S rails new myapp -d jdbcpostgresql
[...]
$jruby -S rake db:create
[...]
$ jruby -S rails g model user name:string
invoke active_record
create
2011 Mar 07
1
has_one :dependent => :destroy error (in `configure_dependency_for_has_one': compile error (SyntaxError))
Hi I''m getting the following error :
/Users/nikosd/.rvm/rubies/ree-1.8.7-2011.02/bin/ruby -e
$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)
/Users/nikosd/.rvm/gems/ree-1.8.7-2011.02@.../bin/rake test
Testing started at 12:00 PM ...
(in /Users/nikosd/Work/.../.../...)
2012 Jun 26
0
no such file load errors - md5
Dear All ,
I have a problem with : this error messasge " No Such File Load error -
md5 "
I can only use with development section.(rails s)
I can''t use with production . ( rails s -e production). I use this
command, the error message is like this
Exiting
/opt/local/lib/ruby1.9/gems/1.9.1/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:317:in
`rescue in
2011 May 05
0
jruby PATH and RUBYOPTS integration
Hi,
I download the last jruby version and install the rspec gem using jgem
to install.
After it, I export RUBYOPTS=rubygems to guarantee that the spec can be
found.
Trying to run the spec by normal mode I got:
jonatas at branco:~/jruby-1.6.1$ jruby -S spec
LoadError: no such file to load -- spec/autorun
require at org/jruby/RubyKernel.java:1038
(root) at /usr/bin/spec:2
Trying to execute
2011 Feb 05
1
ActionMailer::Base.default_url_options
Hi,
I want so set a default url for ActionMailer. I know,
ActionMailer::Base.default_url_options is deprecated, so I use
config.action_mailer.default_url_options = {
:host => "localhost"
}
in my environments (test.rb, production.rb, ...). The problem is, I get a
deprecation error and rails won''t start. I have no solution...
Any hints for me?
Testing started at
2010 Dec 15
5
Having trouble testing :( "superclass mismatch" and can't load "test_helper"
I''m having trouble testing my Rails 3 application. Unit testing
doesn''t work. If I try ruby article_test.rb directly, I get a "no
such file to load" error, and if I try rake test:units or ruby unit/
article_test.rb I get this odd "superclass mismatch for class
ArticlesController" error!
I''m hoping I can get this settled...
My test files were
2011 May 07
4
Activerecord::JDBCError: Invalid column number
Hi,
I''m rather new to Ruby and RoR, so I do not really know whether this ist
the right forum to place my question.
For my first ''project'' I planned to create a simple online-viewer, which
grabs data from an existing database and make them visible in a
structured form via browsers. So I thought that could be the right
beginner-project, because I have only read datasets
2010 Jul 22
9
Something went wrong.
My app works fine in development on my laptop but in production on my
server I get "We''re sorry, but something went wrong. We''ve been notified
about this issue and we''ll take a look at it shortly."
I am using Rails 3, Ruby 1.8.7, Apache and passenger 2.2.15
I get the welcome aboard page in production if I just go to the domain
name but as soon as I want data
2011 Sep 05
8
In Rails 3.1 Model.count() ignores :include - no outer join in generated SQL
Hello!
Just upgraded to Rails 3.1, ran my test and found this issue:
class Trade < ActiveRecord::Base
has_many :transaction_trades
.....
def Trade.do_something
stale_trades = Trade.count(''transaction_trades.id'',
:include => :transaction_trades,
:group => ''trades.id'')
2006 Nov 09
1
Making it work under JRuby
I''ve been having problems starting the daemon under JRuby, has anyone
else tried this?
What I''m trying to accomplish is running Rails on regular ruby and
BackgroundRB on
JRuby. I''m working on a project that requires me to use a java-api to
communicate with
a service and it should work so that when a user logs on to the rails
app, it actually
authenticates through the
2007 Aug 13
0
jruby + camping
CodeHaus has a great introduction of jruby running camping. looks really
nice to have this kind of integration
http://jruby.codehaus.org/The+JRuby+Tutorial+Part+2+-+Going+Camping
--
Andr? G. Cardozo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070813/596265f1/attachment.html
2007 Oct 24
1
Status of Merb on JRuby
I''ve submitted a few patches on Trac to help get Merb running under
JRuby [0][1][2][3][4]. It''d be cool if any of you committers could
find the time to look them over and apply/reject them. They''re mostly
tiny, so it shouldn''t be too onerous.
With all of these patches applied, there are still 3 spec failures.
One is in the spec ''a merb mailer
2007 Nov 22
1
Issues related to jruby 1.0.2/edge rails and rspec head
Hi,
We just spent half an afternoon figuring out why "jruby -S rake spec" didn''t
generate any output at all (no warnings) on an edge rails app. We were
seeing different behaviour on different boxes, and after a while figured out
that it was related to a missing diff-lcs gem on one box.
HTH,
Stefan
--
Bekk Open Source
http://boss.bekk.no
-------------- next part
2006 Dec 01
1
RSpec on JRuby on InfoQ
http://www.infoq.com/news/2006/11/RSpecOnJRuby
2008 Jan 24
0
JRuby, JNA, Windows
Hi all,
Here''s a short example of how to interface with JRuby and the Windows
API I thought I''d share:
require ''java''
# LoadLibrary()
Kernel32 = com.sun.jna.NativeLibrary.getInstance("kernel32")
# GetProcAddress()
GetCurrentDirectoryA = Kernel32.getFunction(''GetCurrentDirectoryA'')
# You can also do -> buf =
2008 May 02
0
A word about compatibility with JRuby and Ruby 1.9
All,
Due to a number of recent bug reports regarding FXRuby''s compatibility
with JRuby, I feel like I need to clear something up, and that''s that
FXRuby will never (well, "almost certainly never") work with JRuby.
This problem isn''t unique to FXRuby; it''s true for any C/C++-based
Ruby extension. See this page:
2012 Mar 04
1
JRuby devkit "gem install win32-api" fails. what to do?
2012 Jan 17
2
does jruby rspec have to use selenium?
With jruby and rspec requests, do you have to use selenium webdriver?
I''m confused, with ruby and rubyonrails using cucumber with capybara, I
didn''t have to set the default driver, what was it using and can i use that
with jruby? Things just worked w/o me even having to know about it :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: