search for: thoughtbot

Displaying 20 results from an estimated 50 matches for "thoughtbot".

2009 Jun 07
6
Missing Template when testing with the Brain Buster Captcha partial
...m.html.erb:23 app/views/contacts/_form.html.erb:1 app/views/contacts/edit.html.erb:1 app/controllers/contacts_controller.rb:41:in `update'' functional/contacts_controller_test.rb:80:in `__bind_1244348412_114'' /usr/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/ lib/shoulda/context.rb:271:in `call'' /usr/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/ lib/shoulda/context.rb:271:in `run_current_setup_blocks'' /usr/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/ lib/shoulda/context.rb:270:in `ea...
2008 Jan 19
6
Quiet Backtrace in RSpec
I''m using RSpec on Rails and would like to clean up the backtraces, so I went looking for an RSpec equivalent to ThoughtBot''s Quiet Backtrace gem<http://thoughtbot.com/projects/quietbacktrace>. I found Spec::Runner::QuietBacktraceTweaker in the RDOCS, but I can''t figure out how to use it. Can I add something to spec_helper.rb that will utilize Spec::Runner::QuietBacktraceTweaker to quiet the back...
2008 Jan 10
21
Shoulda
Hey, we''re currently using shoulda (http://dev.thoughtbot.com/ shoulda/) on a project and I saw some things that would be really nice to see in rspec, namely the should_ methods, and especially the should_be_restful method. Do these go against the rspec goals at all? Or could an ambitious programmer go to town implementing these for rspec_on_ra...
2010 Dec 22
8
Shoulda issue: no more "should have_instance_methods" ?
I''m using Shoulda. After copying the code here.... .... http://joshuaclayton.github.com/code/2009/07/14/should-act-as-list.html.... into my test_helper file so I can test acts_as_list, I came across issues. For one I realized I had to get rid of the _ between the "should" and "have" in past cases, but here, I get this error when I run my unit test:
2006 Jun 29
0
Job openings - Boston / NYC
We (thoughtbot.com) have an immediate need for rails developers who are based in either Boston or New York. You will be working on a temp-to-perm basis (prove yourself over the summer and become full time in the fall) to supplement our existing dev team on internal projects we are undertaking as well as...
2011 Jun 30
2
How to play with shoulda with functional testing
Hi, I am new in rails testing, and now i try to use shoulda to test the functional section. can anyone give me some advice, example or recommend tutorial site to me.. thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To
2007 Oct 18
4
Mocking models provided in Rails plugins
...e Session. NameError in ''SessionsController handling GET /sessions/new should be successful'' uninitialized constant Session An example of my usage: before do @session = mock_model(Session) Session.stub!(:new).and_return(@session) end Thanks! Dan Croak http://thoughtbot.com organic brains. digital solutions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071018/14456927/attachment-0001.html
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
2009 Sep 15
6
User login and authentication
...browsers, but we also want to provide a (RESTful) api. I love the ''convention over configuration'' paradigm, but am totally clueless on what to do when it comes to user authentication. Is there a THE rails-way of doing this? I found many excellent gems and plugins, such as AAA or thoughtbot''s clearance. However, I keep asking myself, why not just use HTTP (digest) authentication? I may be missing something, but why do big players such as Facebook implement their own (token- and secret-based) scheme? What are you guys using? What is your favorite gem/plugin for user auth?
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
2010 Nov 02
0
Can't use paperclip plugins
...scaffold user name:string address:string rake db:migrate == CreateUsers: migrating ==================================================== -- create_table(:users) -> 0.0400s == CreateUsers: migrated (0.0400s) =========================================== rails plugin install http://github.com/thoughtbot/paperclip.git walk 13318e61a4953dfc3d2b76e0491b1651f26062fe From http://github.com/thoughtbot/paperclip * branch HEAD -> FETCH_HEAD rails generate paperclip user photo create db/migrate/20101102092748_add_attachment_photo_to_user.rb rake db:migrate added this...
2010 Jul 30
1
pagination
...the latest version of rails installed. I''m persisting as I think I''m learning a little bit more about how RoR works. However after installing the scaffolding plug-in to fix an earlier problem I now have a problem with the pagination. I have followed this workaround: http://robots.thoughtbot.com/post/159807004/gotchas-when-upgrading-to-rails-2-1 and attempted to place require will_paginate in the environment.rb location, but I find that I cannot then rub the Webrick server. I get the following error. home/brett/RoR/Apps/OpenBenefit/depot/config/environment.rb:42: undefined local vari...
2010 Aug 11
6
rspec2 not working with shoulda
...r_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 getting following error message. Failure/Error: it { shou...
2012 Nov 19
6
puppet-dashboard - rake API not working
...Unpacked gem rdoc-3.6.1 in vendor/gems has no specification file. Run ''rake gems:refresh_specs'' to fix this. config.gem: Unpacked gem rspec-rails-1.3.4 in vendor/gems has no specification file. Run ''rake gems:refresh_specs'' to fix this. config.gem: Unpacked gem thoughtbot-shoulda-2.10.2 in vendor/gems has no specification file. Run ''rake gems:refresh_specs'' to fix this. config.gem: Unpacked gem mocha-0.9.7 in vendor/gems has no specification file. Run ''rake gems:refresh_specs'' to fix this. config.gem: Unpacked gem will_paginate-...
2010 Feb 12
1
Why does config.gem mess up migration?
...-2.3.5/lib/active_record/ connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'' I looked at the environment.rb and noticed one thing that was "abnormal" from my experience. I had cut-pasted the following config.gem line: config.gem ''thoughtbot-factory_girl'', :lib => ''factory_girl'', :source => ''http://gems.github.com'' So I changed it to config.gem ''thoughtbot-factory_girl'', :lib =>false, :source => ''http://gems.github.com'' to look like the oth...
2010 Jan 29
4
requiring records in the DB before testing
Is there any way I can require a small set of data be in the test database before any tests are run? (unit, functional, integration, cucumber, etc) Any way besides using fixtures, that is. Overload a rake task? Modify test_helper? Any ideas? (Simple Case: I have to have a minimal set of user roles defined before any users can be created) -- You received this message because you are subscribed to
2010 Jun 21
9
[BUG] Segmentation fault
...s.org'' gem ''rails'', ''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 =&gt...
2010 Jul 08
3
my web app seed data and cucumber
I''m writing a web app which is used a SaS. Each customer has their own db and app directory. I have a rake task which creates all necessary minimum data to run their website: default rights and roles, a superadmin user, a "us_states" table already populated, some local depots and terminals (it''s a logistics app). I don''t have any cucumber scenarios for it and
2009 Jul 20
9
rake error
...(0.2.0.1) rails (2.3.2, 2.2.2) rake (0.8.7) rcov (0.8.1.2.0) RedCloth (4.2.2) relevance-rcov (0.8.3.4) rmagick (2.10.0) rspec (1.2.7) ruby-debug (0.10.3) ruby-debug-base (0.10.3) ruby_parser (2.0.3) rubyforge (1.0.3) searchlogic (2.1.2) sexp_processor (3.0.2) term-ansicolor (1.0.3) termios (0.9.4) thoughtbot-shoulda (2.10.2) topfunky-gruff (0.3.5) treetop (1.2.6) unicode (0.1) uuidtools (2.0.0) webrat (0.4.4) Thanks for any help!
2008 Sep 02
4
Attachment_fu, Paperclip, & S3
...ow, a) how to include the S3 options and configure paperclip to send images over to S3, and, b) if I''ll get good results (searching the Paperclip google groups suggests that there could be some issues with paperclip & S3)? 1. http://railsforum.com/viewtopic.php?id=17815 2. http://dev.thoughtbot.com/paperclip/ Any help is tres appreciated (that''s an understatement). p.s. another dev (not working on the app anymore) set up some European buckets, and I want to delete them - but the S3Browser keeps telling me ''Redirected to Nowhere'' whenever I try to do so - any i...