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
'use strict' | |
function Car(make, model, year) { | |
// public variables | |
this.make = make; | |
this.model = model; | |
this.year = year; | |
this.breakPedalIsPressed = false; | |
// private variable |
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
files: | |
# If this file is edited, it must be removed from EC2 instance prior to deploy. | |
"/opt/elasticbeanstalk/hooks/appdeploy/pre/09_yarn_install.sh" : | |
mode: "000775" | |
owner: root | |
group: users | |
content: | | |
#!/usr/bin/env bash | |
set -xe |
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
<html> | |
<head> | |
</head> | |
<div class="col-sm-offset-1 col-sm-3"> | |
<form class="form-horizontal"> | |
<!-- Bootswatch Example Form Input --> | |
<div class="form-group"> | |
<label class="sr-only" for="exampleInputAmount">Amount (in dollars)</label> | |
<div class="input-group"> | |
<div class="input-group-addon">$</div> |
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
#Use this line, replacing :id with and integer. | |
page.driver.submit :delete, "/posts/:id", {} | |
#You can also use fixtures | |
page.driver.submit :delete, "/posts/#{posts(:cr).id}", {} | |
featuren "Deleting a Post" do | |
scenario "As an author I should not be able to delete posts so that I can give the editor publishing control" do | |
#Given an author role | |
sign_in(:author) |