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
# RSpec matcher to spec enumerize settings | |
# usage: | |
# | |
# it { should enumerize(:sex).in(:male, :female).with_default(:male) } | |
RSpec::Matchers.define :enumerize do |attribute| | |
match do |model| | |
@attribute = attribute | |
@klass = model.class |
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
# Inspired by Deepak's setup here - https://gist.github.com/deepak/5925003 | |
FROM ubuntu:14.04 | |
RUN apt-get update -qq && apt-get install -y build-essential nodejs npm git curl mysql-client libmysqlclient-dev | |
RUN mkdir -p /my_awesome_social_media_app | |
# Install rbenv | |
RUN git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
RUN echo '# rbenv setup' > /etc/profile.d/rbenv.sh |
NewerOlder