Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker
JT Archie

Standup 3.17.2011 — will_paginate render and devise testing

JT Archie
Thursday, March 17, 2011

Help

How do I test a custom will_paginate renderer?

If using RSpec, test the custom render in a helper spec by using helper.will_paginate and the options you need to test your rendering settings.

When testing with Devise, my custom Devise views are not loading in the specs, instead Devise’s default views are. Why?

Interesting Things

  • When using Devise in integration test, users were logged in when they shouldn’t have been. The culprit was that in the integration test there was before block that logged a user in and in the same scope a pending test. The logged in user was never officially logged in, so later in the test suite a view that did not require login had a logged in user. Be careful how you log in users and clean your session!
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

NYC Standup 2: Fun with sed and git

Pivotal Labs
Thursday, March 17, 2011

Helps

“Showing multiple errors on a field in Rails?”

Often you’ll have multiple validations on a field, for example, ensuring a date is present and also that it is in the right range. If you don’t want to just render the array of errors, one way to go is to create fancier errors using custom validators that will be easier to parse and play with in your view than a bunch of concatenated strings.

“Cross browser testing in the cloud?”

A pivot (who will remain unnamed) wishes to view a webpage on various browser configurations, for example, IE6, in the “cloud.” Pivotal humans suggest Browser Shots.

Interesting Things

“Careful with your command line…”

Careful with your usage of commands like
find . -type f | xargs your_favorite_command
in projects with a git repo. Pretty sure you (I) didn’t mean to do a global search replace inside of the
.git/
directory.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Will Read

Standup 3.16.2011: Autosave Inheritance, Margins, and Logging (the LumberJack way)

Will Read
Wednesday, March 16, 2011

Ask for Help

“How do I show the 80 character line guide in RubyMine?”

Search your RM preferences, it’s in there.

Interesting Things

  • Autosave doesn’t work when you have a has_many :through relationship in your model. The POST gets rewritten as a PUT and doesn’t work as expected. See an example here.

  • Got multiple log files? Want to join those log entries across a specific request? LumberJack is for you! It adds metadata to each log – things like:

    • severity – The severity recorded for the message.
    • time – The time at which the message was recorded.
    • program name – The name of the program logging the message. This can be either set for all messages or customized with each message.
    • process id – The process id (pid) of the process that logged the message.
    • unit of work id – The unique 12 byte hexadecimal number generated for a unit of work.
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

New York City Standup Blogging Part 1

Pivotal Labs
Wednesday, March 9, 2011

And we’re only a few days behind! We’ll start it out with some helps on browser integration tests (everyone’s favorite topic).

Helps

“jQuery drag and drop browser integration test?”

There is a
drag_to
method which may be useful.

“jQuery file uploader bowser integration test?”

The jQuery file uploader seems to be so clever that a Pivot was having trouble testing it with Selenium. Suggestions?

Interesting Things

“will_not_paginate”

Kamanari is a new awesome-er pagination doohickey for Rails 3. Apparently it is making developers’ lives more awesome especially in regards to Ajax-y type things. Check it out!

“HTML is the new assembly”

Knowlesdog mentioned Slim as your new Haml alternative. For some reasons why it’s awesome, check out the github page linked above.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

Standup 2011-03-04: Beter Later Than Neverer

Pivotal Labs
Sunday, March 6, 2011

Ask for Help

“window.onhashchange doesn’t work in Android’s version of WebKit?”

The event exists, but it doesn’t ever get fired. Apparently this also happens in Mobile Safari. Does anyone know how to get it to work?

“What’s the latest and greatest replacement for acts_as_list?”

Apparently there’s no fabulous replacement for acts_as_list.

Interesting Things

  • Apigee to-go will make an API console for your site.
  • Ruby Gems 1.6.1 is out.
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

Standup 2011-03-02: Better Late Than Never

Pivotal Labs
Sunday, March 6, 2011

Ask for Help

“‘Teamcity formatter missing’ error?”

Any ideas how to work around a “Teamcity formatter error” message when running specs (using RSpec 2) in RubyMine?

” Paperclip breaks when a filename contains a ‘#’ character”

Apparently this has been fixed but not released?

Interesting Things

  • Selenium Conference is taking place in San Francisco on April 4-6.

  • MongoDB apparently stores pre-epoch dates as far-future dates and converts them back from future to past dates automatically. However, it does not convert them when searching or sorting.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Dan Podsedly

New in Pivotal Tracker: Reply to emails, delete comments, browse public projects!

Dan Podsedly
Friday, March 4, 2011

Team collaboration with Pivotal Tracker just got better – you can now post comments to stories right from your inbox by replying to any story notification email. That’s not all that’s new in this update – we’ve also added the ability to delete unwanted story comments, you can add extra notes like company address or tax ID to your billing receipts, and there’s a new public projects directory.

Continue reading for details.

Reply to story emails

Reply to any story notification email, and your response will appear as a new comment on that story within seconds. In order for Tracker to know who the reply is from, though, you’ll need to make sure that you’re replying from the email address that’s on your Tracker profile, and that you’re a member of the project.

Note: All Tracker emails now come from the pivotaltracker.com domain. Please add notifications@pivotaltracker.com and tracker-noreply@pivotaltracker.com as contacts or allowed senders in order to prevent Tracker emails from getting caught in your spam filter.

Delete comments

Story comments can now be deleted, by project owners or comment authors. To delete an unwanted comment, hover over the comment header (author’s name and time stamp), and click the trash can icon.

Public Projects directory

Public projects, which are visible to anyone, can now be easily explored with a new public projects directory.

This directory shows a featured public project at the top, a list of the most active projects, and a live feed of all public project activity. It also allows you to search for public projects by name, project description, or project member name.

More on public projects in this blog post.

Billing receipt notes

We’ve heard from many companies, especially in Europe, that their accounting rules require additional information to appear on billing receipts. You can now add arbitrary notes to your account, such as a company address or tax ID, which will appear on all printable receipts, including receipts for past transactions.

To add such information to your receipts, go to the Plans and Billing page of your account, and edit the Notes on Receipt field in the Billing Information section (which appears after you’ve upgraded to a paid plan).

Click on any of the ‘view receipt’ links in your Payment History, and you should see these notes on the printable receipt.

Let us know what you think in comments here or by email to tracker@pivotallabs.com.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Will Read

Standup 03.03.2011: Sharing is Caring & English Lorem Ipsum Generator

Will Read
Thursday, March 3, 2011

Ask for Help

“Is there a way to have multiple ssh.config files or include other ssh type configurations in your main ssh.config?”

Still searching for an answer here.

“What’s the best way to share cap recipes across multiple internal git repos?”

Git submodules will work, but also think about using a shared gem. The shared gem approach will enable you to keep your server configuration in one place as opposed to scattered across multiple repos that define their own server list.

Interesting Things

  • Newer versions of RubyGems (v1.6 was explicitly mentioned) and Rails 2.3 are not compatible right out of the box. You can drop a block in to your environment.rb file to get around it

  • Love your Lorum Ipsum generator, but you need English words? Take a look at Fillerati wich will let you create some paragraphs from books in the public domain.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

Standup 2011-03-01: Spork! Spork! Spork!

Pivotal Labs
Tuesday, March 1, 2011

Ask for Help

“Has anyone else had their Selenium tests break after upgrading from rails 2.3.8 to 2.3.11?”

One team was using Rack 1.1.0, Mongrel 1.1.5 and Rails 2.3.8. When they upgraded to Rails 2.3.11, their Selenium tests started failing. After some investigation they found this commit which they used to create a monkeypatch for Rack 1.1.0:

# Back-porting this patch: https://github.com/rack/rack/commit/f6f3c60938ea3b08f3292a2480e6753c293584e5
module Rack
  module Utils
    class HeaderHash < Hash
      def [](k)
        super(@names[k]) if @names[k]
        super(@names[k.downcase])
      end
    end
  end
end

Anyone have a better solution?

“Slower test suite with Spork?”

Spork can speed up the start-up time of your test suite, but has anyone seen it slow down the overall test run? One Pivot was seeing a 10% slowdown in overall suite speed.

Interesting Things

  • Postgres can write a lot of stuff to your logs. You can quiet it down with the silent-postgres gem and by adding min_messages to database.yml
  • RubyMine 3.1 has support for Spork!
  • 0 Shares
  • Share on Facebook
  • Share on Twitter
Pivotal Labs

Standup 2011-02-28: The Cowbell Isn't Going To Ring Itself

Pivotal Labs
Monday, February 28, 2011

Ask for Help

“jQuery throwing a syntax error when using is("[data-foo]")?”

Has anyone seen jQuery throw a syntax error when passing a data- attribute name to the is() function? This code often works, but started throwing a syntax error after some markup was removed and then re-inserted into the DOM:

$("#foo").attr("data-bar") = 5;
$("#foo").is("[data-bar]");

Interesting Things

  • Rails 3.0.5 has been released.
  • The Nordic Ruby Conference call for proposals ends today, so hurry up and submit.
  • Rails Conf 2011, which is being held in my hometown of Bal-ti-more, just announced its keynote speakers. Check them out.
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Topics

  • agile (778)
  • rails (113)
  • testing (86)
  • ruby (83)
  • ruby on rails (70)
  • jobs (62)
  • javascript (54)
  • techtalk (44)
  • rspec (38)
  • activerecord (29)
  • productivity (29)
  • gogaruco (29)
  • ironblogger (29)
  • git (28)
  • nyc (27)
  • rubymine (25)
  • mobile (22)
  • bloggerdome (20)
  • cucumber (20)
  • process (19)
  • pivotal tracker (19)
  • jasmine (19)
  • design (18)
  • ios (18)
  • webos (17)
  • objective-c (17)
  • android (16)
  • palm (16)
  • "soft" ware (16)
  • fun (15)
  • tracker ecosystem (15)
  • ci (15)
  • cedar (15)
  • rails3 (14)
  • performance (14)
  • bdd (14)
  • gem (13)
  • selenium (12)
  • css (12)
  • goruco (12)
  • bundler (12)
  • tdd (12)
  • meetup (11)
  • railsconf (11)
  • nyc-standup (11)
  • capybara (10)
  • mac (10)
  • mojo (10)
  • chef (10)
  • rubygems (9)
Subscribe to agile Feed
  1. ←
  2. 1
  3. ...
  4. 26
  5. 27
  6. 28
  7. 29
  8. 30
  9. 31
  10. 32
  11. ...
  12. 78
  13. →
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >