Follow Jamis' Guide to faster tests for, scrub_instance_variables.
TL;DR of Symbioz.
Notes: I only had luck with Ruby 1.9.3, not Ruby2, but I didn't dig into the Ruby2 problems too deeply. YMMV.
Installation on a Mac:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| teardown :scrub_instance_variables | |
| @@reserved_ivars = %w(@loaded_fixtures @test_passed @fixture_cache @method_name @_assertion_wrapped @_result) | |
| def scrub_instance_variables | |
| (instance_variables - @@reserved_ivars).each do |ivar| | |
| instance_variable_set(ivar, nil) | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Updated | |
| debugger-1.5.0 | |
| eventmachine-1.0.3 | |
| ffi-1.4.0 | |
| kgio-2.8.0 | |
| nokogiri-1.5.6 | |
| raindrops-0.10.0 | |
| ruby-prof-0.13.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ruby -e "puts ENV['PATH'].split(\":\").join(\"\n\")" |
- I am a github user
- I was removed from an organization
- On my front page there still has links to stuff that was done in my old organization
- Clicking on the links from the organization I was in 404
I would expect the links not to be on my dashboard page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is a simple ruby script that scrapes the opt-ins from the | |
| # LaunchRock API and prints it to Standard Out. | |
| # | |
| # example command line syntax: | |
| # email="[email protected]" password="shredddd" site_name="Yolosite" ruby rock.rb | |
| require 'rubygems' | |
| require 'active_support/all' | |
| require 'httparty' | |
| # Grab the credentials from the command line arguments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FactoryGirl.define do | |
| factory :owner do | |
| name "Yolo Man" | |
| sequence(:email) do |n| | |
| "swagdude#{n}@omgmail.com" | |
| end | |
| password 'swag2themax' | |
| password_confirmation 'swag2themax' | |
| end |
