Displaying 20 results from an estimated 400 matches similar to: "Why does config.gem mess up migration?"
2009 Sep 10
1
Perhaps not the correct group...
But I was not sure where to go with this. I am trying to add rspec
testing to a "working" application and get the following error.
/Library/Ruby/Gems/1.8/gems/color-1.4.0/lib/color.rb:19: Color is not
a module (TypeError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require''
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
2011 Aug 09
0
Devise, RSpec and Webrat
My app is builded with rails 2.3.12, rspec-rails 1.3.2, webrat 0.7.3.
My spec_helper.rb
ENV["RAILS_ENV"] ||= ''test''
require
File.expand_path(File.join(File.dirname(__FILE__),''..'',''config'',''environment''))
require ''spec/autorun''
require ''spec/rails''
require
2013 Dec 24
0
dashed by dashboard
Thoughts?
[root@ca-sna-pm01 config]# rake RAILS_ENV=production db:migrate
(in /usr/share/puppet-dashboard)
NOTE: Gem.source_index is deprecated, use Specification. It will be removed
on or after 2011-11-01.
Gem.source_index called from
/usr/share/puppet-dashboard/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21.
config.gem: Unpacked gem rdoc-3.6.1 in vendor/gems has no
2013 Mar 28
0
Can not determine issue in my factories with factory girl in rspec
Hi Folks,
I hope you''re doing good. Sorry for a long email. I am just trying my best
to learn something new and, need your help to understand/ sort a small
issue which I am not able to figure out.
I have create couple of factories and created some examples for rspec for
one of my projects. I have got everything working on my local. Even, my
specs are green on local for both ruby
2010 Sep 27
3
having some issues with factory_girl and bundler...
Hi All
Need some brilliants minds here :)
I''m using Rails 2.3.8 & ruby 1.8 (I know, I know... )
I''ve move my gems from .gems to Bundler, but I''m having some issues with
Factory_girl when I rake spec
"uninitialized constant Factory"
I''m following the instructions from http://gembundler.com/rails23.html.
Basically:
- grab all config.gem and place
2010 Feb 04
2
preload test data from factory_girl
Is there a way to preload common data made by factory_girl to speed up
tests instead of recreating these common data at the beginning of
every test. For example, I want to have 10 users premade at the
beginning of every test.
I found this http://agilewebdevelopment.com/plugins/factory_data_preloader
But the page says that this plugin does not "play nice" with
autotest. But I use
2012 Dec 04
0
Empty test suite is run after every rake task
When I run rake db:migrate or rake -T I get these lines at the end:
Finished in 0.000276 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
My Gemfile is:
source ''http://rubygems.org''
gem ''rack''
gem ''rails'', ''3.0.9''
gem "acl9", ''0.12.0''
gem "fastercsv"#, :version =>
2012 Apr 25
2
Test oddities
Can someone explain why a instance variable cannot be changed through an
association under rspec/factory_girl? An example is in this gist<https://gist.github.com/2484336>
.
All tests pass except the last. All the steps pass in the console.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web
2010 Jun 03
2
creating fixtures for has_many :through
I''m stymied at how to create a fixture that establishes a has_many
:through relationship.
I''ve watched the railscast at:
http://media.railscasts.com/videos/081_fixtures_in_rails_2.mov
... but that''s for HABTM relationships. I''ve read:
http://www.ruby-forum.com/topic/145676
but that ultimately doesn''t answer any question. So with no further
ado:
2010 Aug 08
2
issue with rescue_action_in_public! and testing 404 responses
Hello,
I''m new to rails and I''m trying to wrap my heads around how to spec
controllers using RSpec (using rails 3rc1 and rspec 2.0.0.beta.19).
The problem I''ve run into is when I want to test that my controllers respond
with a 404 for unfound records.
Whenever I run the spec, the ActiveRecord::RecordNotFound exception is not
caught by rails, causing the spec
2012 Nov 19
6
puppet-dashboard - rake API not working
Hello all,
I am quite new to the puppet arena, but I am really impressed with puppet
as a tool and the possibilities it gives you with regards to managing many
systems.
I am running dashboard 1.2.14 and am trying to query via the rake API:
http://docs.puppetlabs.com/dashboard/manual/1.2/rake_api.html
when I do, I get the following error:
<snip>
# sudo -u puppet-dashboard rake -f
2013 Aug 22
1
How do I deal with ActiveRecord::RecordInvalid: Validation failed:
Hello all,
I am currently writing model tests in rails 4. I am attempting to add an
error to a reservation object if the total number of reservations for a
given date and time has reached a pre-determined limit.
When my test runs, it is hitting the appropriate code but it is raising the
following error as opposed to just giving me an error in the object that I
can use.
2012 Jan 15
2
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)
I upgraded a small project that I had created on 3.1.3 to 3.2.0.rc2.
Running rspec on it brings about a large amount of these messages:
DEPRECATION WARNING: Passing a template handler in the template name is
deprecated. You can simply remove the handler name or pass render :handlers
=> [:haml] instead. (called from block (2 levels) in <top (required)> at
2010 Sep 23
0
rspec problems mocking classes based on mongoid
I am getting errors when running my rspecs.
My project uses rails 3, mongoid, factory_girl, rspec 2.0.0.beta.22,
rspec-mocs, etc
http://pastebin.com/raw.php?i=WkaGiFag
Getting: Failure/Error: @product = assign(:product,
stub_model(Product, undefined method `to_sym'' for nil:NilClass
I''m pretty sure stub_model has no clue on how to handle objects based
on mongoid.
Any ideas?
2010 Dec 08
1
Help on install act_as_ferret on windows XP
Hi There!
Im trying to install act_as ferret on win xp, with this
environment:
winXP
ruby : 1.8.7
rails: 2.3.8
gem list:
abstract (1.0.0)
actionmailer (3.0.1, 2.3.8, 1.3.3)
actionpack (3.0.1, 2.3.8, 2.3.2, 1.13.6, 1.13.3)
actionwebservice (1.2.6, 1.2.3)
activemodel (3.0.1)
activerecord (3.0.1, 2.3.8, 2.3.2, 1.15.6, 1.15.3)
activeresource (3.0.1, 2.3.8)
activesupport (3.0.1, 2.3.8, 2.3.2, 1.4.4,
2011 Nov 02
3
form_for text_field
I have a form
... html .....
<% form_for @person do |f| %>
... html .....
<%= f.text_field :last_name %>
... html .....
<% end %>
When last_name field of @person doesn''t contains french special symbols
like ''é'', all characters are displayed in the input control
(f.text_field :last_name ).
Else only symbols before french special symbol are
2008 Sep 14
2
rake spec:rcov => [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i386-mswin32]
i have a rails app that tests fine with "rake spec" but gets a
segmentation fault when "rake spec:rcov" is run.
i am on windows xp, ruby 1.8.6, rails 2.1.1, mysql 5
my app is at
http://github.com/scottnj/test_blog/tree/master
so maybe someone can try to replicate my error so i know if the
problem is with my code or something installed on my pc.
here is a copy of my shell
2008 Jun 07
2
rcov causing a segmentation fault on rspec 1.1.4 and rails 2.1
Hello again :)
I''m trying to run rcov on my specs here but i''m getting a lot of
segmentation faults (and they usually happen at different places):
/home/mauricio/NetBeansProjects/reeds/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:211:
[BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i486-linux]
2008 Dec 01
1
Undefined method "full_description" when trying to run "rake spec"
Hello guys,
I''m getting this weird error when trying to run the specs using "rake spec":
/home/mauricio/NetBeansProjects/talkies/vendor/rails/actionpack/lib/action_controller/test_process.rb:471:in
`method_missing'': undefined method `full_description'' for
#<Spec::Rails::Example::ControllerExampleGroup::Subclass_73::Subclass_9:0x7f5fdca4a810>
2011 Apr 20
1
How to get R plots with FastRweb
Dear friends,
I am working in a web service project which uses integration of Java with R.
I have used RJava to connect with Java and that is working fine. As R
produces more interactive plots, I would also like to pipe plots generate
from R on web page. I came to know that FastRWeb, R2HTML, brew and
WebGraphics, Cairo together can be used to do that. I have installed all
those successfully. I am