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
require 'rspec' | |
require_relative '../assessment_week2' | |
describe Vehicle do | |
subject { Vehicle.new(Hash[color: "black", wheels: 2]) } | |
it { should be_instance_of Vehicle } | |
its (:wheels) { should == 2 } |
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
def tell_fortune( previous_rails_knowledge=nil, prep=nil ) | |
good_luck = "Gloomy, your future looks. Pain and suffering, you will experience." | |
return good_luck if prep.nil? && previous_rails_knowledge.nil? | |
"The force is strong in you. Succeed, you will." | |
end | |
# Tests |
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
require 'csv' | |
# Handles csv's with varrying total columns | |
# Does not handle headers yet | |
# This method serves as initialize method; calls all other methods | |
# Takes 2 csv files as arguments | |
# First csv should be original file | |
# Second should be the updated file | |
def update_csv(orig_file, new_file) |
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
require(['jquery-noconflict', 'bootstrap-modal', 'bootstrap-tooltip', 'bootstrap-popover', 'bootstrap-tab', 'jquery-cookie'], function (_, modal, jQuery) { | |
//Ensure MooTools is where it must be | |
Window.implement('$', function (el, nc) { | |
return document.id(el, nc, this.document); | |
}); | |
// set jQuery object | |
var jQuery1_7 = window.jQuery; | |
// Load latest version of jquery |
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
sandbox u=!make $> bundle | |
--- ERROR REPORT TEMPLATE ------------------------------------------------------- | |
- What did you do? | |
I ran the command `/Users/ryan/.rbenv/versions/2.1.6/bin/bundle ` | |
- What did you expect to happen? | |
I expected Bundler to... |