search for: factory_girl_rails

Displaying 13 results from an estimated 13 matches for "factory_girl_rails".

2010 Aug 11
6
rspec2 not working with shoulda
...t;= 2.0.0.beta. 19" . I have following code at spec/models/user_spec.rb require ''spec_helper'' describe User do it { should validate_presence_of(:email) } it { should validate_presence_of(:name) } end Here is my gemfile group :development, :test do gem ''factory_girl_rails'', :git => ''git://github.com/thoughtbot/ factory_girl_rails'' gem ''shoulda'' gem "rspec-rails", "= 2.0.0.beta.19" gem "cucumber-rails", "= 0.3.2" gem "capybara" gem "launchy" end I am...
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
2012 Mar 07
6
Can't find the PostgreSQL client library (libpq)
When i try it start my ruby server i get a error that looks like rails server Could not find pg-0.12.2 in any of the sources Run `bundle install` to install missing gems. I dont know what to do Thanks for all the help -- 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 post to this
2010 Jun 21
9
[BUG] Segmentation fault
...9;, ''3.0.0.beta4'' gem ''sqlite3-ruby'', :require => ''sqlite3'' group :test do gem "rspec-rails", ">= 2.0.0.beta.12" gem "shoulda", :git => "git://github.com/thoughtbot/shoulda.git" gem ''factory_girl_rails'' gem ''cucumber'' end gem "devise", :git => "git://github.com/plataformatec/devise.git" gem ''cancan'' gem ''redgreen'' gem ''formtastic'', :git => "git://github.com/justinfrench/ formtastic.gi...
2011 Jan 28
5
mysql quotation wonky
Why would, in an upgrade from 3.0.1 to 3.0.3, a rake db:migrate run this: SELECT "schema_migrations"."version" FROM "schema_migrations" vs this ? SELECT `schema_migrations`.`version` FROM `schema_migrations` __ rake db:migrate output __ rake aborted! Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
2012 Jan 15
2
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. (rspec + haml)
...end gem ''jquery-rails'' gem ''therubyracer'' gem ''bcrypt-ruby'' gem ''haml-rails'' gem ''capistrano'' # tools for testing gem "rspec-rails", :group => [:test, :development] group :test do gem "factory_girl_rails" gem "capybara" gem "guard-rspec" gem ''spec_support'' # on Linux gem ''rb-inotify'' unless RUBY_PLATFORM.include?("x86_64-darwin") gem ''libnotify'' unless RUBY_PLATFORM.include?("x86_64-darwin"...
2010 Sep 30
5
response.should have_text leads to undefined method `has_text?'
One of my controllers directly renders some JSON output that I would like to test with RSpec. For that I use ''response.should have_text("foobar")'' in my spec file, but that leads to a Failure/Error: response.should have_text("enim") undefined method `has_text?'' for #<ActionController::TestResponse: 0xb6736944> I read here somewhere that webrat
2010 Dec 06
0
Rspec: `should': uninitialized constant RSpec::Expectations (NameError)
...; 2.2.0) Gemfile: group :development, :test do gem ''ruby-debug19'' gem ''cucumber-rails'' gem ''cucumber'', ''>=0.8.5'' gem ''capybara'' gem ''rspec-rails'' gem ''factory_girl_rails'' gem ''webrat'', ''>=0.4.3'' gem ''heroku'' gem ''database_cleaner'' end Thanks, David -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To...
2012 Mar 20
0
Setting cache_classes to false results in blank pages
...9;', ''>= 3.2.1'' gem ''stylus'' gem ''slim'' gem ''therubyracer'' gem ''uglifier'', ''>= 1.0.3'' end gem ''jquery-rails'' group :test, :development do gem ''factory_girl_rails'' gem ''rspec-rails'', ''>= 2.6'' gem ''rspec_multi_matchers'' end group :test do gem ''cucumber-rails'' gem ''database_cleaner'' end gem ''capistrano'' ---- br, Jarkko -- You re...
2014 Apr 29
0
Bootstrap 3.1.1 is showing as BS 2...
...s' gem 'pry-rails' gem 'pry-theme'end# Gems used only for assets and not required# in production environments by default.group :assets do gem 'coffee-rails', '3.2.2' gem 'uglifier', '1.2.3'endgroup :test do gem 'capybara' gem 'factory_girl_rails', '4.1.0' gem 'cucumber-rails', '1.2.1', :require => false gem 'database_cleaner', '0.7.0' # gem 'launchy', '2.1.0' # gem 'rb-fsevent', '0.9.1', :require => false # gem 'growl', '1.0.3'endgroup...
2011 Jan 20
11
RSpec / Cucumber painfully slow Rails 3 OSX
I am working on my first Rails BDD project with extensive tests since starting out with Rails a few years ago. Running RSpec or Cucumber is really slow. I''m using Rails 3 and RSpec 2. To run one model spec with only 5 tests takes almost 1 minute! When it finishes it says it took only 0.9 seconds to run the actual test. So obviously it is loading the environment that takes so long. I just
2012 Jan 01
3
'require_tree .' does not seem to be including the available *.js files as expected. Why?
Hi, all, Happy new year :) Referring to http://guides.rubyonrails.org/asset_pipeline.html, it seems that ''require_tree .'' in myapp/app/assets/javascripts/ application.js will include all *.js files in the myapp/app/assets/ javascripts/. I have a few other *.js files in this directory : parts.js, makes.js and categories.js. Here''s an extract from the html file I
2010 Nov 20
4
How to get rspec running?
....4.9) Using mail (2.2.9.1) Using actionmailer (3.0.1) Using arel (1.0.1) Using activerecord (3.0.1) Using activeresource (3.0.1) Using annotate-models (1.0.4) Using bundler (1.0.3) Using diff-lcs (1.1.2) Using factory_girl (1.3.2) Using thor (0.14.4) Using railties (3.0.1) Using rails (3.0.1) Using factory_girl_rails (1.0) Using faker (0.3.1) Installing nokogiri (1.4.4) Using rspec-core (2.0.1) Using rspec-expectations (2.0.1) Using rspec-mocks (2.0.1) Using rspec (2.0.1) Using rspec-rails (2.0.1) Using sqlite3-ruby (1.3.2) Using webrat (0.7.1) Using will_paginate (3.0.pre2) Your bundle is complete! Use `bundle...