Skip to content

Instantly share code, notes, and snippets.

View leehambley's full-sized avatar

Lee Hambley leehambley

View GitHub Profile
require 'tempfile'
file_contents = <<-EOB
---
production:
database: example
usernname: test
password: #{password}
host: localhost
EOB
%ul
=f.hidden_field :tag
%li
=f.label :line_1
=f.text_field :line_1
%li
=f.label :line_2
=f.text_field :line_2
%li
=f.label :city
We couldn’t find that file to show.
rake gems:install
(in /Users/leehambley/Sites/mvor)
There was an error loading some gems, please run "rake gems" for more info
The error was `no such file to load -- cucumber/rake/task`
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/Users/leehambley/Sites/mvor/lib/tasks/cucumber.rake:3
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
# Agent Forwarding & a real terminal
default_run_options[:pty] = true
set :ssh_options, { :forward_agent => false }
# Server IP
SERVER_ADDRESS = '192.168.3.***'
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
require 'tasks/rails'
begin
require 'cucumber/rake/task'
Scenario: Anonymous user can create an account # features/webrat/accounts/creation.feature:15
Given I am logged out # features/step_definitions/accounts/login.steps.rb:46
When I signup as Fred # features/step_definitions/accounts/creation.steps.rb:8
Then I should see a confirmation # features/step_definitions/general.rb:181
And there should be an account for Fred # features/step_definitions/accounts/creation.steps.rb:28
ruby(31361) malloc: *** mmap(size=394264576) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ruby(31361) malloc: *** mmap(size=402653184) failed (error code=12)
*** error: can't allocate region
config.gem "haml-edge", :lib => 'haml', :version => '=2.1.12'
config.gem "chriseppstein-compass", :lib => 'compass', :version => '=0.6.15'
config.gem "sqlite3-ruby", :lib => 'sqlite3', :version => '=1.2.4'
config.gem "diabolo-webrat", :lib => 'webrat', :version => '=0.4.4.2', :env => 'test'
config.gem "rspec", :lib => false, :version => '=1.2.6', :env => 'test'
config.gem "rspec-rails", :lib => false, :version => '=1.2.6', :env => 'test'
config.gem "cucumber", :version => '=0.3.9', :env => 'test'
config.gem "rcov", :env => 'test'
config.gem "raldred-coderay", :lib => 'coderay', :env => 'test'
config.gem "haml-edge", :lib => 'haml', :version => '=2.1.12'
config.gem "chriseppstein-compass", :lib => 'compass', :version => '=0.6.15'
config.gem "sqlite3-ruby", :lib => 'sqlite3', :version => '=1.2.4'
config.gem "diabolo-webrat", :lib => 'webrat', :version => '=0.4.4.2', :env => 'test'
config.gem "rspec", :lib => 'spec', :version => '=1.2.6', :env => 'test'
config.gem "rspec-rails", :lib => 'spec/rails', :version => '=1.2.6', :env => 'test'
config.gem "cucumber", :version => '=0.3.9', :env => 'test'
config.gem "rcov", :env => 'test'
config.gem "raldred-coderay", :lib => 'coderay', :env => 'test'
def update
@product = Product.find(params[:id])
respond_to do |format|
if @product.update_attributes(params[:product])
flash[:notice] = 'Product was successfully updated.'
format.html { redirect_to(admin_product_path(@product)) }
format.xml do
render :nothing => true, :status => :ok
return true
end