Displaying 20 results from an estimated 800 matches similar to: "NoMethodError: undefined method `expect'"
2008 Oct 18
4
Problems when programmatically defining examples
Hi,
I am trying to code an application that is based on Rspec; I am
programmatically building examples, and launching the runner with a custom
formatter. Here are the code snippets from my app:
Launching the runner:
example_groups =
test_expectation.example_groups_for(system_state)
@output = StringIO.new
options =
2012 Jan 26
2
Problem while creating new resource on ActiveAdmin
HI All,
I have installed the Active Admin successfully, but facing the following
error while restarting the server after generating an resource.
*rails generate active_admin:resource item*
/home/logs/Desktop/training/RAILS/courier/app/admin/items.rb:1:in `<top
(required)>'': uninitialized constant Item (NameError)
from
2011 Dec 07
1
Errors when running the local server
Hi all,
I''m running an application on my localhost, but the command "rails server"
behaves very inconsistently. About an hour ago it ran well on another app,
but got errors now.
According to the errors it seemed that the server began to run but the
there is something missing in the library. But I''m very new to Rails so
cannot figure out what do these lines mean:
2012 Jan 20
3
Istalling Ruby 1.9.2
I just installed 1.9.2 on my 2nd machine, but after I installed I checked
the version with ruby -v and it sent me 1.8.7
Here''s the terminal output...anyone know what''s wrong (I have RVM
installed):
Francescas-MacBook-Air:~ fkrihely$ rvm install 1.9.2
Fetching yaml-0.1.4.tar.gz to /Users/fkrihely/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/fkrihely/.rvm/src
Configuring
2011 Oct 16
4
Ruby on rails with twitter integration
after i searched, i got so many links related with the twitter integration ,
Then i do that with one following link
http://cbpowell.wordpress.com/2011/03/17/twitter-oauth-and-ruby-on-rails-integrated-cookbook-style-in-the-console-updated-for-twitter-1-0/
after some steps with the rails console, *Then i got some errors after i
gave the steps to send the tweet from the application *
* client
2012 Aug 14
1
NoMethodError: undefined method `accept' for nil:NilClass
Here''s the trace,
NoMethodError: undefined method `accept'' for nil:NilClass
from
/Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in
`to_sql''
from
2011 Oct 12
1
`require': no such file to load -- rspec/rails (LoadError)
Getting strange loading problem..
>> bundle exec rspec -p spec/models/*
give error:
..
.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/
dependencies.rb:240:in `require'': no such file to load -- rspec/rails
(LoadError)
from /home/slava/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/
lib/active_support/dependencies.rb:240:in `block in require''
from
2011 Aug 28
1
troubles running rspec..
developing a 3.1 app. trying to run spec on and get this error:
bundle exec rake spec
*****************************************************************
DEPRECATION WARNING: you are using a deprecated constant that will
be removed from a future version of RSpec.
/home/slava/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/
runtime.rb:68:in `require''
* Rspec is deprecated.
*
2011 Sep 19
27
Installing Rails Help!
Hi,
I followed a Tutorial on Nettuts to install Ruby with RVM and this went
well. I then tried to install Rails to follow the ''How to build a dropbox
live service'' from Netttus but appear to get errors can anybody help?.
Once I installed rails I created a new rails project using the command
(Rails new sharebox -d mysql)
This worked and created the folder structure.
I then
2011 Oct 13
1
puppet apache module
I''m getting this and it isn''t applying my apache module. Is it because
of these warnings?
notice: Starting Puppet client version 2.7.5
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/puppet-2.7.5/lib/puppet/
provider/service/freebsd.rb:8: warning: class variable access from
toplevel
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/puppet-2.7.5/lib/puppet/
provider/service/freebsd.rb:9:
2006 Nov 07
1
Memory consumption too high
Hi,
I''m having trouble with ferret and AAF blowing up with a NoMemoryError.
Sometimes when I add documents inside my rails app. Ferret starts
consuming huge amounts of memory. I''m on a machine with 2GB of memory
and it still runs out of memory. Sometimes I''m able to run
MyObject.rebuild_index and the memory doesn''t move up at all. However,
sometimes it
2007 Apr 13
5
[Ferret] Serious memory leak on Joyent / TextDrive / Solaris
There is serious memory leak bug in ferret. I''m having this error on
TextDrive Container (aka. Joyent Accelerators) OpenSolaris with Ferret
0.11.4
It happens while searching for some terms with accented or special
characters.
This makes ferret to allocate lots of memory (usually reaching 3+ GB)
and failing if another query like this is executed.
Any ideas on that, could this be locale
2012 Oct 26
8
Puppet 3.0 rspec and custom resources
I am trying to figure out if I am missing something simple here. After
upgrading to puppet 3.0 running puppet-rspec tests that use
custom resources from modules in the fixtures directory are failing. I
have a module that uses the anchor type and with 2.7.19 it works fine.
After upgrading to 3.0 all of the tests are failing with
Puppet::Error:
Puppet::Parser::AST::Resource failed with
2011 Aug 22
6
Trouble with Ruby on Rails
Some background info: I am an OS X user, and my MAC system is OS X
10.6.8(snow leopard).
@1st problem (regarding Ruby on Rails installation):
I have installed ruby "1.9.2" with RVM. When I typed "ruby -v" command
in terminal after installation, it says that the ruby version I have
is "1.8.7". Strange, isn''t it? So, I have tried "rvm use 1.9.2"
2011 Jan 02
3
undefined method `run_all' for :Array
I''m using the latest ruby 1.9.3-head and recently whenever I run rspec
(2.2+) I get the following error:
I have seen others have run into this issue, but to resolve it just
rolled back to a previous version of rspec or it there a better way?
ruby-1.9.3-head/gems/rspec-core-2.3.1/lib/rspec/core/hooks.rb:116:in
`run_hook_filtered'': undefined method `run_all'' for []:Array
2012 Jan 15
2
ruby-debug19 error undefined symbol: ruby_current_thread
I am trying to deploy a Rails app ( Rails 3.0.9 / Ruby 1.9.2 ) in
production (Debian 6)
it''s running fine in development mode on localhost ( OSX)
I am getting this error from Passenger : undefined symbol:
ruby_current_thread
/var/www/vhosts/mydomain.com/rails/testsbga/shared/bundle/ruby/
1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined
symbol: ruby_current_thread -
2011 Oct 30
2
Could not find rails (>= 0) amongst [bundler-1.0.21]
Hello, I''m new to Ruby and unix/linux development (although been
building .net apps for years).
I''ve almost completed my trek to install Rails ... looks like I have one
final hurdle. After installing rails I try the ''rails -v'' command and
it fails. Any help here would be deeply appreciated.
Here''s the output from my bash session:
bash-3.2$ ruby
2011 Aug 20
4
trouble installing 1.9.2
hello,
I am trying install Ruby 1.9.2 on my MacBook Pro Lion. I am following
along with the install instructions at ruby.railstutorial.org. I am the
point were you run rvm install 1.9.2. Below in what I see in the
terminal when installing and below that my rvm log. Thanks for any help.
rvm install 1.9.2
Installing Ruby from source to: /Users/user/.rvm/rubies/ruby-1.9.2-p290,
this may take a
connect': Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (Mysql2
2011 Nov 07
1
connect': Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (Mysql2
Hi all,
I did a fresh install of ROR on my fedora 15,i get the
following error.
" $ rails s
=> Booting WEBrick
=> Rails 3.1.1 application starting in development on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/prescience/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.6/lib/mysql2/client.rb:43:in
`connect'': Can''t connect to
2008 Jul 08
1
Strange behaviour with pending specs and implementation_backtrace
Hi all,
I''m using my own OutputFormatter with /bin/spec to catch rspec results. I''m experiencing strange behaviour with pending specs and implementation_backtrace.
This is my example_pending implementation in rspactor_formatter.rb:
class RSpactorFormatter
def example_pending(example, message)
spec = SpecObject.new(
:name => example.description,