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
$px-bright-orange: #df7934; | |
$px-dark-orange: #9d331c; | |
$px-aqua: #349ce6; | |
$px-kolbolt: #283973; | |
$px-electric-indego: #0030aa; |
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
$px-bright-orange: #df7934; | |
$px-dark-orange: #9d331c; | |
$px-aqua: #349ce6; | |
$px-kolbolt: #283973; | |
$px-electric-indego: #0030aa; |
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
$px-bright-orange: #df7934; | |
$px-dark-orange: #9d331c; | |
$px-aqua: #349ce6; | |
$px-kolbolt: #283973; | |
$px-electric-indego: #0030aa; |
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
FFFFFFFFF........ | |
Failures: | |
1) ApplicationHelper#display_active returns '' if the current controller action does not equal the argument | |
Failure/Error: helper.stub(:controller_action_name).and_return('welcome#about') | |
NameError: | |
undefined local variable or method `helper' for #<RSpec::ExampleGroups::ApplicationHelper::DisplayActive:0xbcb35d0> | |
# ./spec/helpers/application_helper_spec.rb:33:in `block (3 levels) in <top (required)>' |
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 "spec_helper" | |
RSpec.describe WelcomeController, :type => :controller do | |
describe "GET home" do | |
it "returns http success" do | |
get :home | |
expect(response).to be_success | |
end |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure('2') do |config| | |
config.vm.box = 'precise32' | |
config.vm.box_url = 'http://files.vagrantup.com/precise32.box' | |
config.vm.hostname = 'rails-dev-box' | |
config.vm.network :forwarded_port, guest: 3000, host: 3000 | |
config.vm.provision :puppet do |puppet| |
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
Success Kid | |
[![Success](http://i.imgur.com/dv59B0X.jpg)](http://knowyourmeme.com/memes/success-kid-i-hate-sandcastles) | |
Fluttershy Yay! | |
[YAY!](http://youtu.be/DLTZctTG6cE) | |
You got it Dude | |
[![Dude](http://i.imgur.com/eD7qWOT.jpg)](http://youtu.be/AIpv3Shdzf4) |
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 'faker' | |
# Create Users | |
5.times do | |
user = User.new( | |
name: Faker::Name.name, | |
email: Faker::Internet.email, | |
password: Faker::Lorem.characters(10) | |
) | |
user.skip_confirmation! |
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
<%= form_for(@wiki) do |f| %> | |
<% if @wiki.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@wiki.errors.count, "error") %> prohibited this wiki from being saved:</h2> | |
<ul> | |
<% @wiki.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> |