Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove the compiled .rbc file from Rubinius so it will regenerate

This will fix the problem on the CI server, where some time the change occurred by "write_file" will not trigger Rubinius to generate a compiled .rbc file.
  • Loading branch information...
commit 2c08152ba6d67815523a5ecff45b88e787ad449b 1 parent 0e8b874
@sikachu sikachu authored
Showing with 5 additions and 8 deletions.
  1. +5 −8 features/step_definitions/attachment_steps.rb
View
13 features/step_definitions/attachment_steps.rb
@@ -10,15 +10,12 @@ def attachment_path(filename)
World(AttachmentHelpers)
When /^I modify my attachment definition to:$/ do |definition|
- in_current_dir do
- File.open("app/models/user.rb", "w") do |file|
- file.write <<-FILE
- class User < ActiveRecord::Base
- #{definition}
- end
- FILE
+ write_file "app/models/user.rb", <<-FILE
+ class User < ActiveRecord::Base
+ #{definition}
end
- end
+ FILE
+ remove_file 'app/models/user.rbc' rescue nil
end
When /^I upload the fixture "([^"]*)"$/ do |filename|
Please sign in to comment.
Something went wrong with that request. Please try again.