What is it?
Cobra is a way to organize your rails application, imagine it like a new way for packaging your rails apps
These are my annotations based on work of @shageman and @benjaminleesmith from Pivotal
| component_name = Rails.root.to_s.split("/")[-3] | |
| component_root = Rails.root.to_s.gsub("spec/dummy", "") | |
| gemspec = <<-EOS | |
| s.add_development_dependency \"rspec-rails\" | |
| s.test_files = Dir["spec/**/*"] | |
| EOS | |
| inject_into_file "#{component_root}/#{component_name}.gemspec", |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| class SignUpPage | |
| def initialize | |
| current_path.should == sign_up_path | |
| end | |
| def with_email(email) | |
| fill_in "Login", :with => email | |
| end | |
| def with_password(password, confirmation = password) |