Better Late Than never

July 3, 2013 whiteboard

Helps

Fixtures attempting to require files that don't exist

We have global fixtures turned on in our project and on test startup a method deep in ActiveRecord::Fixtures tries to require a file for each model that does not exist. This causes ton's of log output and slows the test suite by several minutes.

Interestings

GoLang named return parameters

Go has the ability to name your return values.

func(foo string) (bar string) {
// some stuff
bar = "hello"
// more stuff
return
}

The function will return "hello". Useful where you would have created an accumulator variable and then returned it.

http://golang.org/doc/effective_go.html#named-results

Private in Go

Struct, function (upper and lower case), package… and what to test?

About the Author

Biography

More Content by whiteboard
Previous
Why Passbook Integration is a Must
Why Passbook Integration is a Must

This month, Apple’s Passbook application will mark its first birthday since being announced at Apple Worldw...

Next
Automated Accessibility Testing in Rails with capybara-accessible
Automated Accessibility Testing in Rails with capybara-accessible

capybara-accessible is an automated accessibility testing tool that has been recently released by Case Comm...

Enter curious. Exit smarter.

Learn More