Skip to content

Instantly share code, notes, and snippets.

View Kalimaha's full-sized avatar
🌒
not because they are easy, but because they are hard

Guido Barbaglia Kalimaha

🌒
not because they are easy, but because they are hard
View GitHub Profile
@Kalimaha
Kalimaha / .travis.yml
Created April 23, 2016 03:43
R3Twitter Configuration for TravisCI
language: ruby
rvm:
- 2.2
services:
- redis-server
script:
- bundle exec rake test
one:
id: 1
first_name: James
last_name: Cameron
birthday: 1954-08-16
<body>
<div class="container">
<%= yield %>
</div>
</body>
<p>
<strong>Director:</strong>
<%= @director.full_name %>
</p>
<div class="field">
<%= f.label :director %><br>
<%= f.collection_select :director_id, Director.all, :id, :full_name, {:prompt => 'Please select a director'} %>
</div>
# Use sqlite3 as the database for Active Record
# gem 'sqlite3'
# PostgreSQL
gem 'pg'
# Use SQLite in the test and development environments
group :development, :test do
gem 'sqlite3'
gem 'byebug'
ENV['RAILS_ENV'] ||= 'test'
# Coveralls
require 'coveralls'
Coveralls.wear!('rails')
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
class ActiveSupport::TestCase
@Kalimaha
Kalimaha / .travis.yml
Last active April 14, 2016 04:53
TravisCI Configuration File
language: ruby
rvm:
- 2.2
env:
- DB=sqlite
- DB=postgresql
before_script:
<%= link_to '<i class="fa fa-magic"></i> New Movie'.html_safe, new_movie_path, class: 'btn btn-primary' %>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">