Skip to content

Instantly share code, notes, and snippets.

actionmailer (3.2.2)
actionpack (3.2.2)
activemodel (3.2.2)
activerecord (3.2.2)
activeresource (3.2.2)
activesupport (3.2.2)
arel (3.0.2)
builder (3.0.0)
bundler (1.1.2 ruby)
coffee-rails (3.2.2)
#!/usr/bin/env ruby
PASSWORD = "123456"
USERNAME = "user%d"
(1..3).each do |i|
user = USERNAME % i
puts `/usr/sbin/useradd --groups rvm #{user}`
puts `echo -e "#{PASSWORD}\n#{PASSWORD}" | (/usr/bin/passwd --stdin #{user})`
group :development do
gem 'rails_best_practices'
gem 'brakeman'
end
group :development, :test do
gem 'rspec-rails'
gem 'mail_safe'
gem 'tddium'
end
Feature: Sign up
Scenario: Successful sign up
Given I have chosen to sign up
When I sign up with valid details
Then I should receive a confirmation email
And I should see a personalized greeting message
Scenario: Duplicate email
Given I have chosen to sign up
@timurvafin
timurvafin / Gemfile
Created January 13, 2012 12:38
List github repos without commits more then 1 year
source 'http://rubygems.org'
gem 'i18n'
gem 'activesupport', '>= 2.3.5'
gem 'octokit', '~> 0.6.0'
@timurvafin
timurvafin / Gemfile
Created January 12, 2012 01:32
Integration tests with rspec, capybara and selenium
source :rubygems
gem 'rspec'
gem 'capybara'
gem 'json'
source 'http://rubygems.org'
gem 'i18n'
gem 'activesupport', '>= 2.3.5'
gem 'octokit', '~> 0.6.0'
group :development do
gem 'cucumber', '>= 0'
gem 'bundler', '~> 1.0.0'
source :rubyforge
gem "httparty"
gem "activesupport"
gem "i18n"
@timurvafin
timurvafin / gist:1263183
Created October 4, 2011 23:49
image rounded corners
img.photo_img {
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
box-shadow: 0px 2px 8px rgba(0,0,0,0.33);
overflow: hidden;
}