This file contains 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
class Conductor | |
include ActiveModel::Conversion | |
extend ActiveModel::Naming | |
include ActiveModel::Validations | |
class_attribute :object_names | |
def self.presents(*object_names) | |
self.object_names = object_names | |
object_names.each do |object_name| |
This file contains 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
class SignUpPage | |
def initialize | |
current_path.should == sign_up_path | |
end | |
def with_email(email) | |
fill_in "Login", :with => email | |
end | |
def with_password(password, confirmation = password) |
This file contains 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
#!/usr/bin/env python3 | |
""" | |
A little script to quickly identify the worst offenders. Easily extensible to | |
find and sort by other issues. Expects you to have results available in an | |
easily consumable JSON file, which you can generate by running: | |
rubocop --format progress --format json --out rubocop.json | |
""" |